Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unchecking all Forms checkboxes in entire sheet
I found this great code for unchecking all Form Toolbar created
checkboxes on a single sheet: Sub Clearem() Dim bx as object For each bx in Worksheets("Sheet1").Checkboxes bx.value = xlOff Next End Sub How can I adapt this to uncheck all boxes in an entire workbook? I've tried Activebook and workbook("") with no luck. Thanks in adavnce. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unchecking all Forms checkboxes in entire sheet
Use this code:
Dim objWorksheet As Worksheet For Each objWorksheet In ActiveWorkbook.Worksheets 'Your For loop goes here Next objWorksheet michaelberrier wrote: I found this great code for unchecking all Form Toolbar created checkboxes on a single sheet: Sub Clearem() Dim bx as object For each bx in Worksheets("Sheet1").Checkboxes bx.value = xlOff Next End Sub How can I adapt this to uncheck all boxes in an entire workbook? I've tried Activebook and workbook("") with no luck. Thanks in adavnce. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unchecking all Forms checkboxes in entire sheet
That rocks! Thanks, mb |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unchecking all Forms checkboxes in entire sheet
No need to loop Forms type checkboxes
Worksheets("Sheet1").CheckBoxes.Value = xlOff ' or xlOn checked xlOff is -4146 but 0 also works, xlOn is +1 Regards, Peter T "michaelberrier" wrote in message ups.com... I found this great code for unchecking all Form Toolbar created checkboxes on a single sheet: Sub Clearem() Dim bx as object For each bx in Worksheets("Sheet1").Checkboxes bx.value = xlOff Next End Sub How can I adapt this to uncheck all boxes in an entire workbook? I've tried Activebook and workbook("") with no luck. Thanks in adavnce. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Checking and Unchecking CheckBoxes in code | Excel Discussion (Misc queries) | |||
Forms - Checkboxes | Excel Worksheet Functions | |||
Checkboxes on forms | Excel Programming | |||
Checkboxes from the Forms Toolbar | Excel Programming | |||
Can you hide forms checkboxes | Excel Programming |