I am new at VBA with excel so bear with me. The following code works, however it appears to run several times. I have tried in vain to resolve this issue. When I click in cell A2 the code runs several times in a row, almost like it is in a counting loop.
Code:
Sub clicknow()
' module code
' clicknow Macro
'
Range("A18").Select
Selection.Copy
Range("a2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
SendKeys "{ESC}"
End Sub
' sheet1 code
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$2" Then clicknow
End Sub