copy checkbox to multiple cells?
This code will add check boxes. I made it only 5 x 10 becuase the 60 x 100
take a few minutes to run. I also included a macro to remove all checkboxes.
Sub AddCheckboxes()
'
' Macro recorded 9/13/2007 by Joel
'
'
For NCol = 1 To 5
For NRow = 1 To 10
Set x = ActiveSheet.Shapes.AddFormControl _
(xlCheckBox, (100 * (NCol - 1)) + 3, _
(25 * (NRow - 1)) + 5, 80, 25)
Next NRow
Next NCol
End Sub
Sub removecheckbox()
For Each sh In ActiveSheet.Shapes
sh.Delete
Next sh
End Sub
"RD" wrote:
I am doing a survey and would like a grid of checkboxes probably 100 rows x
50 columns. I really really don't want to make themone at a time. Can they be
copied from one cell to multiple cells?
Rd
|