M
maacmaac
I want to hide rows based on the value given in G4. Example: if G4=6,
then hide rows 17-25; if G4=3, then hide rows 14-20; if G4=11,
then hide rows 22-25.
I am using the following macro, but it does not work.
Sub Hide_Rows()
'
' Hide_Rows Macro
'
' Rows.Offset("A14:A25").EntireRow.Hidden = True
End Sub
Please help.
Thanks,
Attachment filename: hide rows.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=383145
then hide rows 17-25; if G4=3, then hide rows 14-20; if G4=11,
then hide rows 22-25.
I am using the following macro, but it does not work.
Sub Hide_Rows()
'
' Hide_Rows Macro
'
' Rows.Offset("A14:A25").EntireRow.Hidden = True
End Sub
Please help.
Thanks,
Attachment filename: hide rows.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=383145