Forum Discussion
GregGann
Mar 02, 2022Copper Contributor
How do I access #SPILL area from FILTER() result in VBA?
If I use FILTER() function cell $B$1, how do I target or select the entire spill range from VBA? There is a range or table. It is outlined in blue. The blue outline updates dynamically with the n...
- Mar 02, 2022Use the # character, so $B$1#
mtarler
Mar 02, 2022Silver Contributor
Use the # character, so $B$1#
- GregGannMar 02, 2022Copper ContributorI know that works the cells, but I didn't know I can use that in VBA
- mtarlerMar 02, 2022Silver ContributorI tested it and it worked for me. For example I did this in the Immediate window where D1 has a spill function:
print activesheet.range("d1#").rows.count
and got 12