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 Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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,537
Messages
6,125,390
Members
449,222
Latest member
taner zz

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