Hi. I want to hide or unhide a few rows on a sheet based on the value of a togglebutton. It seemed obvious at first, simple even. But I'm getting error 438 Object does not support this property or method. Using Excel 97.
My code is
Any ideas?
"Probably the only Test Analyst on Tek-Tips"
Take a look at Forum1393 & sign up if you'd like
My code is
Code:
Private Sub ShowHide_Click()
Select Case ShowHide.Value
Case False
Rows("5:10").Select
Selection.EntireRow.Hidden = True
ShowHide.Caption = "Display Summary Info Only"
Case True
Rows("4:11").Select
Selection.EntireRow.Hidden = False
ToggleButton1.Caption = "Display Progress by Cycle and Day"
End Select
End Sub
Any ideas?
"Probably the only Test Analyst on Tek-Tips"
Take a look at Forum1393 & sign up if you'd like