W
willwonka
I have some code that obviously works outside a Worksheet Change Event.
Range("CopyRow").Copy Destination:=Sheets("Current Task LIST").Cells(651, 1)
When I put in a change event, I get the dreaded Run-time error '1004'. Method 'Range' of object'_Worksheet'
Here is the first part of code:
Private Sub Worksheet_Change(ByVal Target As Range)
'On Error Resume Next
Dim OLook As Object 'Outlook.Application
Dim Mitem As Object 'Outlook.Mailitem
Dim MsgBody As String
Dim Trow As Integer
Dim SendAnEmail As Boolean
If Not Intersect(Target, Range("a2:a2000")) Is Nothing Then
Application.EnableEvents = False
Range("CopyRow").Copy Destination:=ActiveSheet.Cells(Target.Row, 1)
Range("CopyRow").Copy Destination:=Sheets("Current Task LIST").Cells(651, 1)
When I put in a change event, I get the dreaded Run-time error '1004'. Method 'Range' of object'_Worksheet'
Here is the first part of code:
Private Sub Worksheet_Change(ByVal Target As Range)
'On Error Resume Next
Dim OLook As Object 'Outlook.Application
Dim Mitem As Object 'Outlook.Mailitem
Dim MsgBody As String
Dim Trow As Integer
Dim SendAnEmail As Boolean
If Not Intersect(Target, Range("a2:a2000")) Is Nothing Then
Application.EnableEvents = False
Range("CopyRow").Copy Destination:=ActiveSheet.Cells(Target.Row, 1)