Related:
- Can I get the Autofilter to work automatically without
- Download automatically while roaming - Guide
- Why does facebook refresh itself automatically - Guide
- Transfer data from one excel worksheet to another automatically - Guide
- How to automatically save photos from messenger to gallery - Guide
- How to open a web page automatically in full screen mode in html - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Jan 6, 2016 at 12:06 PM
Jan 6, 2016 at 12:06 PM
then why not make selection off that cell.
Jan 6, 2016 at 12:37 PM
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.AutoFilterMode = False
Range("A40:K1580").AutoFilter
Range("A40:K1580").AutoFilter Field:=1, Criteria1:=Range("T4")
End Sub
However, my problem is that my range cell, T4, updates from another worksheet based on a vlookup. Once that is cell T4 is changed, the autofilter will not run, until I put the cursor on cell T4. I would like the autofilter to run as soon as the cell changes, and not require the user to hover over the cell to make it VBA run to make the change. I tried making the change to the drop box field, and it still makes me hover over it once the drop box selection is made. Does that make sense?
Thanks for your help.
Jan 6, 2016 at 12:41 PM