I have a worksheet that contains invoice numbers in column D. I'd like to copy the invoice number to another worksheet ("Details") when one is selected. I've added the "If IsNumeric" condition to make sure that only cells containing an invoice # can be copied over. The code is in the Sheet1 module, but seems to do nothing. Can anyone help point me in the right direction?
<code>
</code>
<code>
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 4 Then
On Error Resume Next
Application.EnableEvents = False
If IsNumeric(Target.Address) Then
ActiveSelection.Copy
Sheets("Detail").Range("A5").Select
ActiveSelection.Paste
End If
Application.EnableEvents = True
End If
End Sub