Good morning folks.
Wonderful to be part of this community.
I was hoping someone could answer my question.
I have a list of values (3) in cell P53 of a worksheet. When "Yes - Full" is the active selection from that list, a macro runs which essentially makes sure there is a formula in cell Q53. The problem I am having is, if I now choose to go back to cell P53 to change the value, it won't let me. It seems to immediately run the macro again. What do I need to add to my code to avoid this issue?
my code is thus:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Value = "Yes - Full" Then
Application.EnableEvents = False
Application.ScreenUpdating = False
Call pension1
Application.EnableEvents = True
Application.ScreenUpdating = True
Else
End If
End Sub
Thank you in advance kind and brainy people!
Wonderful to be part of this community.
I was hoping someone could answer my question.
I have a list of values (3) in cell P53 of a worksheet. When "Yes - Full" is the active selection from that list, a macro runs which essentially makes sure there is a formula in cell Q53. The problem I am having is, if I now choose to go back to cell P53 to change the value, it won't let me. It seems to immediately run the macro again. What do I need to add to my code to avoid this issue?
my code is thus:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Value = "Yes - Full" Then
Application.EnableEvents = False
Application.ScreenUpdating = False
Call pension1
Application.EnableEvents = True
Application.ScreenUpdating = True
Else
End If
End Sub
Thank you in advance kind and brainy people!