I have created the macro shown below. The idea is when the user enters a new number in Cell D5, the macro goes to another worksheet and simply copies the value in K11.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "D5" Then
Sheets("Quotes Database").Select
Range("K11").Select
Selection.Copy
End If
End Sub
The problem is when it runs, I get a...
Runtime Error 1004
Select method of Range class failed
...and the macro stops on the "Range("K11").Select" line.
I would appreciate any help.
Thanks,
MikeG
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "D5" Then
Sheets("Quotes Database").Select
Range("K11").Select
Selection.Copy
End If
End Sub
The problem is when it runs, I get a...
Runtime Error 1004
Select method of Range class failed
...and the macro stops on the "Range("K11").Select" line.
I would appreciate any help.
Thanks,
MikeG