problem with command button

kevin lazell

Well-known Member
Joined
Jun 2, 2004
Messages
513
hi guys
i have 3 command buttons on my worksheet and if i right click on any of them
then assign macro i do not get the option to edit the code where the edit button should be i get new instead
can someone point me in the right direction to get the edit option back please
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
ActiveX controls work differently to Forms buttons. There is no Assign Macro option what you do is click on View Code in the menu. This inserts an event procedure in the code module behind the worksheet containing the button. You call your macro from this event.



Code:
Private Sub CommandButton1_Click()

Call MyMacro

End Sub

Dave
 
Upvote 0
hi dmt32
i have changed all the buttons to activex control buttons but they do not activate when selected.
normally you would get your curser arrow when you hover over them, but i get a cross when
hovering over them. i dont understand call mymacro can you explain please
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top