Hi,
I'm sure this is really simple but I can't figure it out for the life of me. I have the following Macro:
Sub UnhideRow1()
Dim i As Long
If columns("A").SpecialCells(xlCellTypeVisible).Count = rows.Count Then Exit Sub
i = 1
Do Until rows(i).Hidden = True
i = i + 1
Loop
rows(i).Hidden = False
End Sub
It works okay, but I only want it to work for rows 50:77 as I have hidden rows after that which I don't want to unhide.
How can I limit the macro to run just for these rows. I've been all over Google and can't get it to work.
Thank you!!
I'm sure this is really simple but I can't figure it out for the life of me. I have the following Macro:
Sub UnhideRow1()
Dim i As Long
If columns("A").SpecialCells(xlCellTypeVisible).Count = rows.Count Then Exit Sub
i = 1
Do Until rows(i).Hidden = True
i = i + 1
Loop
rows(i).Hidden = False
End Sub
It works okay, but I only want it to work for rows 50:77 as I have hidden rows after that which I don't want to unhide.
How can I limit the macro to run just for these rows. I've been all over Google and can't get it to work.
Thank you!!
Last edited: