Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have created a worksheet with Opt 1

Status
Not open for further replies.

mcm103

Technical User
Sep 28, 2001
20
0
0
US
I have created a worksheet with Option buttons. A user can click on the buttons to indicate the status of the item he/she is working on.

I want to create a macro that will reset the worksheet by changing the options buttons to the inital setting. I have been unable to target an indiviual option button value property.

Any suggestions?
 
Hi,
How did you created your option buttons???

1. Forms or
2. Control Toolbox? Skip,
metzgsk@voughtaircraft.com
 
Well you could do this...
Code:
Sub ResetOptionButtons()
    For Each OptionButton In ActiveSheet.OptionButtons
        OptionButton.Value = False
    Next
End Sub
This sets them all OFF. You could set them to a different value.

Hope this helps :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top