Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Can anyone help with this macro ?
I need it to hide any rows which have a value of 0 in cols A to H I DON'T want to use filters. Every time I run it, nothing is hidden Thanks in advance Sub Hide_Print_Unhide() Dim rw As Long Application.ScreenUpdating = False With Sheets("Sheet1") For rw = 1 To 300 If Application.WorksheetFunction.CountA( _ .Cells(rw, 1).Range("A1:H1")) = 0 Then _ .Rows(rw).Hidden = True Next rw .PrintOut .Range("A1:A300").EntireRow.Hidden = False End With Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
hide rows with macro | Excel Discussion (Misc queries) | |||
Macro for Filter Switches ... Maybe??? | Excel Discussion (Misc queries) | |||
Filter Switches vs Macro? | Excel Discussion (Misc queries) | |||
Macro to hide rows with empty cells | Excel Worksheet Functions | |||
Why can't my macro use Auto Filter when I told the Sheet Protecti. | Excel Worksheet Functions |