how do I get radio buttons in excel

J

Jammings

I want to set up botton with labels that when I click on the respective
buttons a maco is run which filters the range I want. eg daily sales for Jan.
or dailysales for february.

I am using excel 2003
 
K

Kevin B

Click VIEW/TOOLBARS and select the CONTROL TOOLBOX toolbar. It has option
buttons, check boxes, list boxes, etc...
 
J

Jammings

Thanks kevin. This was what I wanted. I got the macro to run the filter
however I dont remember how to link the macro to the button I have created.
 
K

Kevin B

Turn you CONTROL TOOLBOX back on if necessary. The button on the toolbar
that has a ruler, triangle and pencil is the design button. Click this to
turn design mode back on.

Point your mouse to your option button and right click and then select View
Code in the menu.

You can either place all your macro code in the worksheet module or you can
reference you sub/function that's in a code module.

When done, close the Visual Basic Module, turn design mode off so you can
test drive your macro and save your work before running the code.

Hope this helps.
 
J

Jammings

thanks. it works like magic.

Kevin B said:
Turn you CONTROL TOOLBOX back on if necessary. The button on the toolbar
that has a ruler, triangle and pencil is the design button. Click this to
turn design mode back on.

Point your mouse to your option button and right click and then select View
Code in the menu.

You can either place all your macro code in the worksheet module or you can
reference you sub/function that's in a code module.

When done, close the Visual Basic Module, turn design mode off so you can
test drive your macro and save your work before running the code.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top