starchildren3317
New Member
- Joined
- May 17, 2011
- Messages
- 6
Good Morning Community,
I have a worksheet named AppSelect and when it gets activated I am trying to copy a row from another worksheet within the same workbook to this active worksheet.
Here is the code that I have to do such:
When I activate the sheet however, I get this error:
Run-time Error '9':
Subscript out of range
It seems to be failing out on this line:
The Skills worksheet does exist and it is not misspelled so I am not really sure what it is choking. Any ideas?
I have a worksheet named AppSelect and when it gets activated I am trying to copy a row from another worksheet within the same workbook to this active worksheet.
Here is the code that I have to do such:
Code:
Private Sub Worksheet_Activate()
With Worksheets("Skills").Range("A2")
.Range(.Cells(1), .End(xlToRight)).Copy Destination:=Worksheets("AppSelect").Range("A1")
End With
End Sub
When I activate the sheet however, I get this error:
Run-time Error '9':
Subscript out of range
It seems to be failing out on this line:
Code:
With Worksheets("Skills").Range("A2")
The Skills worksheet does exist and it is not misspelled so I am not really sure what it is choking. Any ideas?