Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a document with a series of checkboxes, checkbox1-20.
I am trying to write code that will go through these checkboxes, and if they are checked, output a "1" to another file. Can anyone help me write this code? I tried: If checkbox1.Checked = true Then Workbooks("wb1").Worksheets("data").cells(1,1) = 1 This doesn't appear to be working. Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cechboxes are not part of cells. They sit onto of cells like pictures. try
soething like this Sub Macro1() ' ' Macro1 Macro ' ' For Each Shape In ActiveSheet.Shapes If Left(Shape.Name, 8) = "CheckBox" Then MsgBox (Shape.Name) End If Next Shape End Sub " wrote: I have a document with a series of checkboxes, checkbox1-20. I am trying to write code that will go through these checkboxes, and if they are checked, output a "1" to another file. Can anyone help me write this code? I tried: If checkbox1.Checked = true Then Workbooks("wb1").Worksheets("data").cells(1,1) = 1 This doesn't appear to be working. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
checkbox | Excel Discussion (Misc queries) | |||
How to have Checkbox A uncheck with checked Checkbox B | Excel Discussion (Misc queries) | |||
link a checkbox in a sheet to a checkbox on a userform? | Excel Programming | |||
How do I link one checkbox to update another checkbox? | Excel Programming | |||
checkbox on form reset from checkbox on sheet | Excel Programming |