Forum Discussion
SomeshKaistha
Sep 19, 2021Copper Contributor
Hide/Unhide Rows in Excel in multiple sheets
I have a data in more than 40 sheets with same format. In "Column AX", I have total of all. Data format:- "top to bottom is date amd left to right is brands". In Column AX top to bottom is total of al...
- Sep 19, 2021Thanks. I'll check & let you know whether it works for me or not.
HansVogelaar
Sep 19, 2021MVP
Whether the following macro works or not depends on the layout of your worksheets...
Sub HideZeros()
Dim wsh As Worksheet
For Each wsh In Worksheets
Select Case wsh.Name
' List the exceptions here, if any
Case "Introduction", "Summary"
' Skip these sheets
Case Else
wsh.UsedRange.AutoFilter Field:=50, Criteria1:="<>0"
End Select
Next wsh
End Sub
SomeshKaistha
Sep 25, 2021Copper Contributor
Issue is still there. Code not working for me
- HansVogelaarSep 25, 2021MVP
Please attach a sample workbook without sensitive data.