How do I apply an autofilter criteria that only applies if EVERY cell in range, let's say a row of 10 cells, are blank.
I tried the approach below but the autofilter isn't applied this way.
With range
.AutoFilter Field:=1, Criteria1:=Application.WorksheetFunction.CountA(Range("A5:J5")) = 0
End with
The aim is to hide rows within the range in which all the cells are blank. It's required that ALL the cells are blank, not just 9/10 or 1/10 for example.
I'm surprised I wasn't able to find a similar question anywhere and I'm wondering whether my search is simply wrong - but that doesn't change the fact that I can't find similar questions or answers. So in advance, sorry if this already has been asked.