Thank you, Bob. As it turns out, my problem was that I was still in Design Mode. I had copied the macro into the click event but still could not get it to work. The button would not "press". What you said in your reply caused to light bulb to come on. Thanks again
Craig
----- Bob Phillips wrote: ----
Hi Craig
You have probably have a control button, not a forms button
You can't assign a macro to this, it uses event (such as click) code. T
access this
- open the Control Toolbox toolbar (Tools>Customize>Toolbars
- go into design mode (click the blue-green triangle icon
- now double-click the button, and it will take you in to the code event fo
click where you can add the code, or even call your macr
- exit design mod
You can call your macro from the command button event code like s
Private Sub CommandButton1_Click(
MyMacr
End Su
--
HT
Bob Phillip
... looking out across Poole Harbour to the Purbeck
(remove nothere from the email address if mailing direct
Craig said:
I'm trying to do something I haven't done in a long time. Put a comman
button on a worksheet and assign a macro to the button. I have the butto
on the sheet OK, but when I get the sub-menu, "Assign Macro" is not in th
menu. Before I created the button I recorded the macro. What is m
problem? What am I missing? How do I do this? Excel 2003. Thanks