Hi, bazofio,
regarding the original post and the question there: keep it simple and stupid.
Check the range where the entries will be made instead of trying to capture the calculatiuon for formulas based on these cells.
I inserted a new Column at AH and altered the formulas for AF2 as well as AF4.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("AC2:Ac3")) Is Nothing Then
If Target.Count = 1 Then
Application.EnableEvents = False
' Range("AD2:AG2").Value = Range("AD4:AG4").Value
Range("B2").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("AF3:AH4"), _
CopyToRange:=Range("AI2:AO2"), Unique:=False
Application.EnableEvents = True
End If
End If
End Sub
Please note that I commented out the code line which converts the formula to value. You could add that to the macro as either a formula being written to the cells or as values being entered there.
Ciao,
Holger
Bookmarks