The macro is executing correctly, but not at the right time.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will cause an alert when they are changed.
Set KeyCells = Worksheets("PP Master").Range("F8")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
Worksheets("PP Master").Range("i9").Value = Worksheets("PP Master").Range("f8").Value
End If
End Sub
If I change f8 (via data validation drop down), it doesn't copy the value over until I
1) click away from F8
2) click ON F8.
*Once I click on F8 again (even if I don't change it), the macro runs. I want it to run instantly, the first time I select the new value from the drop down. Suggestions?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will cause an alert when they are changed.
Set KeyCells = Worksheets("PP Master").Range("F8")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
Worksheets("PP Master").Range("i9").Value = Worksheets("PP Master").Range("f8").Value
End If
End Sub
If I change f8 (via data validation drop down), it doesn't copy the value over until I
1) click away from F8
2) click ON F8.
*Once I click on F8 again (even if I don't change it), the macro runs. I want it to run instantly, the first time I select the new value from the drop down. Suggestions?