Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Zobah Mizrachi   on Nov 30 In MS Office Category.

  
Question Answered By: Roderick King   on Nov 30

I was unable to
create a command button  that didn't have that option  on the right-click
menu, so I'm not sure what happened to you there.

However, you can assign  the macro  to the button using code. Go into the VBA
editor (Alt and F11). Insert a module by right clicking on your worksheet
and choosing, insert, then module. Add the following lines of code:

Sub Button1_Click()
Macro1
End Sub

Just change the Button1 to be the name of your button, and change the Macro1
to be the name of your macro.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Assigning a macro to a button Or get search suggestion and latest updates.


Tagged: