Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set all option buttons on worksheet to off
Hi I use the following below to set all checkboxes on sheet 1 to off, can the
same be done for option buttons on sheet 1. The option buttons used are from the forms toolbar. Private Sub clear_Click() Worksheets("sheet1").CheckBoxes.Value = xlOff End Sub Have tried a copy of ideas but I haven't got there yet. -- This post was created using recycled electrons! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set all option buttons on worksheet to off
This seems to work fine for me:
Sub test() For Each OptionButton In ActiveSheet.OptionButtons OptionButton.Value = False Next End Sub Good luck. Ken Norfolk, Va On Feb 9, 4:45 pm, Newbeetle wrote: Hi I use the following below to set all checkboxes on sheet 1 to off, can the same be done for option buttons on sheet 1. The option buttons used are from the forms toolbar. Private Sub clear_Click() Worksheets("sheet1").CheckBoxes.Value = xlOff End Sub Have tried a copy of ideas but I haven't got there yet. -- This post was created using recycled electrons! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set all option buttons on worksheet to off
How about something like:
worksheets("Sheet1").OptionButtons.Value = False Newbeetle wrote: Hi I use the following below to set all checkboxes on sheet 1 to off, can the same be done for option buttons on sheet 1. The option buttons used are from the forms toolbar. Private Sub clear_Click() Worksheets("sheet1").CheckBoxes.Value = xlOff End Sub Have tried a copy of ideas but I haven't got there yet. -- This post was created using recycled electrons! -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set all option buttons on worksheet to off
Thanks Guys,
-- This post was created using recycled electrons! "Dave Peterson" wrote: How about something like: worksheets("Sheet1").OptionButtons.Value = False Newbeetle wrote: Hi I use the following below to set all checkboxes on sheet 1 to off, can the same be done for option buttons on sheet 1. The option buttons used are from the forms toolbar. Private Sub clear_Click() Worksheets("sheet1").CheckBoxes.Value = xlOff End Sub Have tried a copy of ideas but I haven't got there yet. -- This post was created using recycled electrons! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change Header & Footer Info w/ Worksheet Option Buttons | Excel Discussion (Misc queries) | |||
Two Groups of Option Buttons on Worksheet | Excel Discussion (Misc queries) | |||
Option buttons on a worksheet | Excel Discussion (Misc queries) | |||
How do I create a form in a worksheet with control option buttons. | New Users to Excel | |||
Can I use more than one set of option buttons in a worksheet? | Excel Worksheet Functions |