- Код: Выделить всё
call CommandButton1_Click

call CommandButton1_Click
Application.Run
Application.Run ("UserForm1.CommandButton1_click")


Call UserForm1.CallButton1ClickSub CallButton1Click
Call CommandButton1_Click
end SubApplication.Run ("UserForm1.CallButton1Click")
CallByName UserForm1.CommandButton1, "Click", VbMethod 
Public Sub Macro()
CallByName UserForm1, "CommandButton1_Click", VbMethod
End Sub
Public Sub CommandButton1_Click()
MsgBox "То, что доктор прописал"
End Sub
CallByName UserForm1.CommandButton1, "Click", VbMethod CallByName UserForm1.CommandButton1, "CommandButton1_Click", VbMethodCallByName UserForm1, "CommandButton1_Click", VbMethod
Private Sub CommandButton1_Click()Public Sub CommandButton1_Click()Call UserForm1.CommandButton1_ClickCallByName UserForm1, "CommandButton1_Click", VbMethod
Public Sub CommandButton1_ClickApplication.Run "UserForm1.CommandButton1_Click"
Сейчас этот форум просматривают: Google-бот и гости: 5