Dear Sir,
I am using following code to add rows from A5:A498
It add rows in a way like, It unhide Row: A9:10, then A13:14
A11:A12 keep hidden, same way it goes all the way to A498
Now I need a code when I play it, it should unhide all the rows from A5:A498 in same pattern like;
A5:A6 = Unhide
A9:10 = Unhide
A13:14 = Unhide
All the way to A498 should be unhide in same pattern and in between rows should be keep hidden
I am using following code to add rows from A5:A498
It add rows in a way like, It unhide Row: A9:10, then A13:14
A11:A12 keep hidden, same way it goes all the way to A498
Code:
Sub addrow() Dim Ar As Areas
Set Ar = Range("A5:A498").SpecialCells(xlVisible).Areas
Ar(Ar.Count).Offset(4).Resize(2).EntireRow.Hidden = False
End Sub
Now I need a code when I play it, it should unhide all the rows from A5:A498 in same pattern like;
A5:A6 = Unhide
A9:10 = Unhide
A13:14 = Unhide
All the way to A498 should be unhide in same pattern and in between rows should be keep hidden