
Sub Set_Macro_to_Forms()
Dim shtTabs As Object
Dim shpForms As Shape
Dim oldName As String
Dim newName As String
Application.ScreenUpdating = False
oldName = "Personal"
newName = "Personal_Nuevo"
For Each shtTabs In Sheets
shtTabs.Activate
For Each shpForms In ActiveSheet.Shapes
If shpForms.Type = 8 And InStr(1, shpForms.OnAction, oldName) <> 0 Then
shpForms.OnAction = Replace(shpForms.OnAction, oldName, newName)
End If
Next shpForms
Next shtTabs
End Sub

Usuarios navegando por este Foro: Google [Bot] y 5 invitados