JazzSP8
Well-known Member
- Joined
- Sep 30, 2005
- Messages
- 1,233
- Office Version
- 365
- Platform
- Windows
Hey All
I can't seem to get the syntax right for this and I'm at the point where I'm understanding it less the more I read :/
I'm trying to copy from one worksheet to another with a variable paste range but I can't seem to get the paste part to work, this is what I originally thought would work but doesn't;
With the variables CopyTo and Sug holding the row and column variables I want to paste into.
Can someone help with the correct way of referencing one cell for the "paste" part?
Thanks for looking.
I can't seem to get the syntax right for this and I'm at the point where I'm understanding it less the more I read :/
I'm trying to copy from one worksheet to another with a variable paste range but I can't seem to get the paste part to work, this is what I originally thought would work but doesn't;
Code:
If Cells(i, "N").Value = "Suggested" Then
Range("P" & i).Copy Destination:=Worksheets("Alts and Accessories").Range(Cells(CopyTo, Sug))
Sug = Sug + 1
End If
With the variables CopyTo and Sug holding the row and column variables I want to paste into.
Can someone help with the correct way of referencing one cell for the "paste" part?
Thanks for looking.