Hi Guys,
Hopefully someone can help.
I'm trying to crease a macro to an object which will hide and unhide set rows. I can get a button to do this, but would much prefer to have an image, which is a down arrow that hides several rows below it.
It's used to hide details rows under header rows for finance purposes. For example smaller accounts within a large totalling account. My code for the toggle button works and looks as below, but can't seem to adjust it for an object:
Private Sub ToggleButton1()
If ToggleButton1 Then
Rows("12:15").EntireRow.Hidden = True
Else
Rows("12:15").EntireRow.Hidden = False
End If
End Sub
Any help is much appreciated.
Hopefully someone can help.
I'm trying to crease a macro to an object which will hide and unhide set rows. I can get a button to do this, but would much prefer to have an image, which is a down arrow that hides several rows below it.
It's used to hide details rows under header rows for finance purposes. For example smaller accounts within a large totalling account. My code for the toggle button works and looks as below, but can't seem to adjust it for an object:
Quote:
Private Sub ToggleButton1()
If ToggleButton1 Then
Rows("12:15").EntireRow.Hidden = True
Else
Rows("12:15").EntireRow.Hidden = False
End If
End Sub