First time using macros and check boxes. My macro is not working, surprise. Excel 2010.
I have created a check box (forms control) labeled "Financial (Contract Renewal)". Is this the box/object's designation? This is what I "point to" in my macro? Am a limited in syntax what I name my check box? i.e. no spaces, special characters, etc?
I created a macro called "Macro1". I could not use "Financial (Contract Renewal)". Is that becuase no special characters or spaces allowed, or because that "label" is already in use by the object?
Anyways, I'm sure I have multiple error in here.... This will not run.
Sub Macro1()
'
' Macro1 Macro
' Hide/Unhide Rows
'
' Keyboard Shortcut: Ctrl+j
'
If Financial (Contract Renewal).Value = True then
Rows("20:31").Select
Selection.EntireRow.Hidden = False
ElseIf Financial (Contract Renewal).Value = False then
Rows("20:31").Select
Selection.EntireRow.Hidden = True
End If
End Sub
Any help is much appreciated....
I have created a check box (forms control) labeled "Financial (Contract Renewal)". Is this the box/object's designation? This is what I "point to" in my macro? Am a limited in syntax what I name my check box? i.e. no spaces, special characters, etc?
I created a macro called "Macro1". I could not use "Financial (Contract Renewal)". Is that becuase no special characters or spaces allowed, or because that "label" is already in use by the object?
Anyways, I'm sure I have multiple error in here.... This will not run.
Sub Macro1()
'
' Macro1 Macro
' Hide/Unhide Rows
'
' Keyboard Shortcut: Ctrl+j
'
If Financial (Contract Renewal).Value = True then
Rows("20:31").Select
Selection.EntireRow.Hidden = False
ElseIf Financial (Contract Renewal).Value = False then
Rows("20:31").Select
Selection.EntireRow.Hidden = True
End If
End Sub
Any help is much appreciated....