Johnny Thunder
Well-known Member
- Joined
- Apr 9, 2010
- Messages
- 693
- Office Version
- 2016
- Platform
- MacOS
Hello all,
I am having some issues with a statement in my current code and all sources online aren't really answering my question directly.
I have a fairly long script that loops thru a range to get a filter criteria value and then apply the filter to a range on a seperate sheet. This code works great but recently I added in some new values to the list of criteria that don't have any data on my filter range but will in the future.
I need a "IF Statement to determine if the Filter Range results in a nothing being returned and if so, GoTo Jump which will jump the code down past several other actions in the code and go to the next loop value.
Any ideas will be super helpful.
My filter range: ws.Range("B3:B" & LastR).SpecialCells(xlCellTypeVisible)
I am having some issues with a statement in my current code and all sources online aren't really answering my question directly.
I have a fairly long script that loops thru a range to get a filter criteria value and then apply the filter to a range on a seperate sheet. This code works great but recently I added in some new values to the list of criteria that don't have any data on my filter range but will in the future.
I need a "IF Statement to determine if the Filter Range results in a nothing being returned and if so, GoTo Jump which will jump the code down past several other actions in the code and go to the next loop value.
Any ideas will be super helpful.
My filter range: ws.Range("B3:B" & LastR).SpecialCells(xlCellTypeVisible)