oblix
Board Regular
- Joined
- Mar 29, 2017
- Messages
- 183
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
- 2003 or older
- Platform
- Windows
- MacOS
- Mobile
- Web
Hi there all
I have table that I allow users to click on icon to run vba to filter non blank rows before printing:
I woud like to exclude lines 3 to 547 as I have hiddden it from user. Alternatively to exclude lines which has contains word :"Opening Stock".
The same goes for unfiltering. With unfilter it should not unfilter lines 3 to 547 and should remain hidden. the current code is:
Any help would be appreciated and I will learn from your suggestions
I have table that I allow users to click on icon to run vba to filter non blank rows before printing:
Rich (BB code):
Sub Prep_Received()
With ThisWorkbook.Worksheets("Received")
Range("$B$2:$F$3000").AutoFilter Field:=1, Criteria1:="<>"
End With
End Sub
I woud like to exclude lines 3 to 547 as I have hiddden it from user. Alternatively to exclude lines which has contains word :"Opening Stock".
The same goes for unfiltering. With unfilter it should not unfilter lines 3 to 547 and should remain hidden. the current code is:
Rich (BB code):
Sub Clear_Prep_Received()
With ThisWorkbook.Worksheets("Received")
If .AutoFilterMode Then .AutoFilter.ShowAllData
End With
End Sub
Any help would be appreciated and I will learn from your suggestions