Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default submit button in macro

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

Thanks
Eric
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit Button Edith Excel Discussion (Misc queries) 0 April 8th 08 09:56 PM
Submit Button? Bip Excel Discussion (Misc queries) 1 January 15th 07 12:32 PM
Submit Button edwardpestian Excel Worksheet Functions 1 April 27th 06 08:24 PM
Form with submit button Hooter Excel Worksheet Functions 0 June 8th 05 07:12 PM
Command Button to submit Sarah Excel Programming 3 September 14th 04 07:33 PM


All times are GMT +1. The time now is 09:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"