Hi, Melissa,
means the area surrounding the cell A1 until any fully empty column or row is found. I doubt that giving an area address would make a lot of sense because if I would do so I would make sure to reference the corresponding area and not have to work with CurrentRegion in addition. Please note that if you change the address and any data would be found in Row 1 Row 1 still would be used for Autofilter. Without seeing the data in your workbook that may be one reason as well as my favourite reason (merged cells ).
Is there a function that can return the number of rows that meet the AutoFilter criteria?
If tehre is data found you may use
This should help with the run time error if no data is found.
Ciao,
Holger
Bookmarks