VBA Code:
Range("A5,A6,A8,A9,A11,A12,A14,A15,A17,A18,A20,A21,A23,A24,A26,A27").EntireRow.Select
Selection.EntireRow.Hidden = True
1) Please can someone help me to shorten the above code.
2) Basically I need a a code to hide rows in the range (Row range 4:50 )
If there is a value in cell in Cell A4, I need to hide the rows (5:6), if there is a data in cell A7 in need to hide rows (8:9) and so on like that.
Thanks in advance