Tash Point O
New Member
- Joined
- Feb 12, 2018
- Messages
- 47
Hello All,
I am trying to paste range A1:N1, which is a relative reference via an offset from the active cell (which can be A1, A7, A8, etc) to 3 rows above it and it's not working.
Now, I know it sounds like I'm trying to paste my copy to an address that doesn't exist but remember I've offset it and the A1:N1 range is a relative reference.
Here is my macro, all works well till I get to the destination.
I am trying to paste range A1:N1, which is a relative reference via an offset from the active cell (which can be A1, A7, A8, etc) to 3 rows above it and it's not working.
Now, I know it sounds like I'm trying to paste my copy to an address that doesn't exist but remember I've offset it and the A1:N1 range is a relative reference.
Here is my macro, all works well till I get to the destination.
Code:
Sub testing()
If Len(ActiveCell) = 6 Then
ActiveCell.Offset(3, 12).Range("A1:N1").Copy ActiveCell.Offset(-3, 0).Range("A1")
End If
End Sub