Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub HideRows()
range("A1:A20").Entirerow.Hidden = False on Error resume Next set rng = Range("A1:A20").specialCells(xlblanks) On Error goto 0 if not rng is nothing then rng.Entirerow.Hidden = True End if End Sub Assume no merged cells. -- Regards, Tom Ogilvy "Qaspec" wrote in message ... On a button click I'd like to hide row 4 if a4 is empty. I'd like to this up to row 20 if the correspondince cell to that row in column a is empty. Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically hide a row if it is empty | Excel Discussion (Misc queries) | |||
Hide the line when cell B is empty | Excel Discussion (Misc queries) | |||
if cell empty hide row macro? | Excel Programming | |||
Hide row with empty cells | Excel Programming | |||
Hide row with empty cells | Excel Programming |