Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
2007 Need macro to auto set option buttons all to "Yes" or "No"
I used control tool box for buttons, not activix. Thanks! Paula
|
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
2007 Need macro to auto set option buttons all to "Yes" or "No"
Try the below...
Dim obj As Object For Each obj In ActiveSheet.OLEObjects If TypeName(obj.Object) = "OptionButton" Then obj.Object.GroupName = obj.Name obj.Object.Value = True End If Next 'If you mean CheckBox then Dim obj As Object For Each obj In ActiveSheet.OLEObjects If TypeName(obj.Object) = "CheckBox" Then obj.Object.Value = True Next If this post helps click Yes --------------- Jacob Skaria "Paula" wrote: I used control tool box for buttons, not activix. Thanks! Paula |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Shortcut key for "Paste Options" and "Error Checking" buttons? | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |