Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dallin
 
Posts: n/a
Default Assign a macro to Command Button Object

When I right click on my command Button to locate the option of assign to
macro its not their. How do I get the option to assign to macro to appear?
The other options are available to me on the command button but not the
assign to macro???
--
thanks, mc
  #2   Report Post  
Norman Jones
 
Posts: n/a
Default

Hi Dallin,

If the button is from the Control Toolbox, double-click the button which
will take you to the sheet module and provide you with a macro stub for the
CommandButton something like:


Private Sub CommandButton1_Click()

End Sub


Insert insert the body of your macro between the two stub lines.

Alternatively, if the macro you want to use is in a standard module, simply
add the line:

Call MyMacro

between the stub lines, replacing 'MyMacro' with the name of your macro.


---
Regards,
Norman



"dallin" wrote in message
...
When I right click on my command Button to locate the option of assign to
macro its not their. How do I get the option to assign to macro to
appear?
The other options are available to me on the command button but not the
assign to macro???
--
thanks, mc



  #3   Report Post  
Anne Troy
 
Posts: n/a
Default

Please see:
http://www.officearticles.com/misc/m...ica tions.htm
*******************
~Anne Troy

www.OfficeArticles.com


"dallin" wrote in message
...
When I right click on my command Button to locate the option of assign to
macro its not their. How do I get the option to assign to macro to

appear?
The other options are available to me on the command button but not the
assign to macro???
--
thanks, mc



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
Assign Macro SUE M Excel Discussion (Misc queries) 1 September 22nd 07 09:00 PM
Assign to macro missing Paul Excel Discussion (Misc queries) 2 January 22nd 05 09:55 AM
How to assign a macro to a commnd button Mickey Blue Eyes Excel Discussion (Misc queries) 2 January 4th 05 02:15 PM
Assign Macro to button in Excel doesnt work Any ideas? Mike@Becketts Excel Discussion (Misc queries) 2 December 20th 04 02:47 PM
assign a macro to a control button ewan72 Excel Discussion (Misc queries) 1 December 3rd 04 02:04 PM


All times are GMT +1. The time now is 09:42 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"