I tried to run it as a macro but it hung at teh sheet name. My sheets are
named 'Pilot 1' , 'Pilot 2' , 'Pilot 3', ... , 'Pilot 12' The checkboxes are
in the range W1:W321
"Norman Jones" wrote in message
...
Hi Adam,
Try:
'=============
Public Sub Tester01()
Dim SH As Worksheet
Dim rng As Range
Dim rCell As Range
Set SH = ActiveSheet '<<==== CHANGE
Set rng = SH.Range("A1:A100") '<<==== CHANGE
Application.ScreenUpdating = False
For Each rCell In rng
With SH.CheckBoxes.Add(rCell.Left + 5, _
rCell.Top - 2, 5, 5)
.Caption = ""
.LinkedCell = rCell.Address(0, 0)
End With
rCell.Font.Color = vbWhite
Next rCell
Application.ScreenUpdating = True
End Sub
'<<=============
If you are new to macros, you may wish to visit David McRitchie's 'Getting
Started With Macros And User Defined Functions' at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
---
Regards,
Norman
"Adam Kroger @hotmail.com" <adam_kroger<nospam wrote in message
...
Is there an "easy" way to add check boxes to a worksheet? As it stands,
I have to manually attach it to the underlying cell, and adjust the size.
I would like to add several hundred checkboxes. Am I doing somethig
wrong, or is it just that akward and labor intensive in Excel?