> VBA whether it's checked or not.
>
> I reference the check box with:
>
> Sheets("Mysheet").Shapes("MyCheckBox")
>
> Can someone tell me the syntax to determine the check status?
I'm newly returned to Excel, so I'm not up-to-date on everything about it,
so I'm not sure of you Shapes reference; but when I put a CheckBox on a work
sheet, I do it from the Visual Basic ToolBox and draw it directly onto the
sheet. I can then reference it directly within VBA using its name... and the
property you want is the Value property. Use
MyCheckBox.Value
for code on the Worksheet itself. If you are referencing across Worksheets,
then use
Sheets("Mysheet").MyCheckBox.Value
The Value property will be either True (if checked) or False (if not
checked).
Rick
|