![]() |
Worksheet_Change
Hello all,
I'm trying to use the workshee_change event to grab the value of the current filter criteria1 and then paste that value into a particular cell. However, it's not working. Anyone have ideas? Here's the code; Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Address = "$H$991" Then 'Application.EnableEvents = False If Target.Value = 10 Then With ActiveWorkbook If .AutoFilterMode Then With .AutoFilter.Filters(1) If .On Then c1 = .Criteria1 Range("F992").Value = c1 End With End If End With End If ' Application.EnableEvents = True End If End Sub Cheers, Job |
All times are GMT +1. The time now is 02:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com