Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We have a worksheet that collects rows of information from another sheet. Is
there a way to write a macro that would hide (or unhide as new rows are added) so when I print it only prints rows with data? Here is our attempt, which hides the rows but will not unhide the rows when new rows are added. Suggestions??? Private Sub Worksheet_Change(ByVal Target As Range) Application.Calculation = xlCalculationAutomatic Application.ScreenUpdating = False With ActiveSheet For Each cell In Range("B6:B30,B38:B62") If cell.Value = "" Then cell.EntireRow.Hidden = True ElseIf cell.Value 1 Then cell.EntireRow.Hidden = False End If Next End With Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to hide/unhide WS based upon WS tab color | Excel Discussion (Misc queries) | |||
Macro that will unhide then hide rows | Excel Discussion (Misc queries) | |||
Macro to hide and unhide based on criteria | Excel Discussion (Misc queries) | |||
Hide/Delete entire rows based in the content of one cell | Excel Discussion (Misc queries) | |||
Hide/unhide sheet macro based on cell calculation | Excel Programming |