ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   submit button in macro (https://www.excelbanter.com/excel-programming/359860-submit-button-macro.html)

Jones E

submit button in macro
 
I'm trying to use a Submit button to run a macro. Need Help.

Thanks
Eric

AMDRIT

submit button in macro
 
Simply double click on the button and it will take you to the control's
click event. From there you can call your macro.

Private Sub CommandButton1_Click()
Call MyMacro
End Sub


Private Sub MyMacro()
msgbox "Aw, you clicked me, how nice of you."
End Sub


"Jones E" <Jones wrote in message
...
I'm trying to use a Submit button to run a macro. Need Help.

Thanks
Eric




Jones E[_2_]

submit button in macro
 
Thanks so much, worked Great

"AMDRIT" wrote:

Simply double click on the button and it will take you to the control's
click event. From there you can call your macro.

Private Sub CommandButton1_Click()
Call MyMacro
End Sub


Private Sub MyMacro()
msgbox "Aw, you clicked me, how nice of you."
End Sub


"Jones E" <Jones wrote in message
...
I'm trying to use a Submit button to run a macro. Need Help.

Thanks
Eric






All times are GMT +1. The time now is 03:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com