Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to hide rows 5-30 if cell (I8) is empty.
any thoughts? Thank you. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Sub Hide() If Range("I8") = "" Then Rows("5:30").RowHeight = 0 End If End Sub Sub Unhide() Cells.Select Selection.RowHeight = 12.75 End Sub HTH, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "DarrenL" wrote: I want to hide rows 5-30 if cell (I8) is empty. any thoughts? Thank you. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
sub hideem()
if len(application.trim(range("i8")))<1 then rows ("5:30").hidden=true end if end sub -- Don Guillett Microsoft MVP Excel SalesAid Software "DarrenL" wrote in message ... I want to hide rows 5-30 if cell (I8) is empty. any thoughts? Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide a sheet based on a cell condition | Excel Programming | |||
hide multiple rows based on condition within rows | Excel Programming | |||
hide rows where cell condition is not met | Excel Worksheet Functions | |||
Hide rows based on a condition | Excel Programming | |||
Is there a way to hide worksheets and/or rows/columns based on information enter into a particular cell of range of cells? | New Users to Excel |