Hi!
I am using a macro, which filters data in a column of activecell.
Assume you have two or more data ranges (tables) on one sheet, while one of that ranges has autofiler turned on.
When running a macro I want to check whether the activecell is outside the range with autofilter and if it is, cancel autofilter and aplly it to the current region of activecell. Is it possible?
I am using a macro, which filters data in a column of activecell.
Code:
ActiveCell.CurrentRegion.AutoFilter Field:=ActiveCell.Column - ActiveCell.CurrentRegion.Cells(1, 1).Column + 1, Criteria1:=ActiveCell.Value
Assume you have two or more data ranges (tables) on one sheet, while one of that ranges has autofiler turned on.
When running a macro I want to check whether the activecell is outside the range with autofilter and if it is, cancel autofilter and aplly it to the current region of activecell. Is it possible?