JordanGoodchild
New Member
- Joined
- Jul 21, 2010
- Messages
- 28
Hi, im trying to get the caption on a toggle button to change dependant on whether a certain set of rows are hidden or showing.
currently the code i have to hide the rows is this
everytime i try something it gives me the object required error.
currently the code i have to hide the rows is this
Code:
Sub ToggleButton1_Click()
If Rows("3:10").EntireRow.Hidden = False Then
Rows("3:10").EntireRow.Hidden = True
Else
Rows("3:10").EntireRow.Hidden = False
End If
End Sub
everytime i try something it gives me the object required error.