Desu Nota from Columbus
Well-known Member
- Joined
- Mar 17, 2011
- Messages
- 556
I have the following code:
Inside the with statement, the range isn't accepted. I am copying values from 1 sheet, and then trying to have them paste in column A without copying over eachother.
I originally had (instead of the with statement):
Sheets("Sheet2").Paste
And all the values pasted to A1 so only 1 value was seen (because they pasted over one another). I've tried a plethora of different syntaxes but nothing I've tried thus far has worked.
How do you specify "paste to the first open cell in Column A, sheet2"?
Code:
Dim i As Integer
For i = 16 To Range("L" & Rows.Count).End(xlUp).Row
If Range("L" & i).Value = False Then
Range("A" & i & ":" & "K" & i).Copy
With Sheets("Sheet2")
Range("A" & i).Paste
End With
End If
Next i
I originally had (instead of the with statement):
Sheets("Sheet2").Paste
And all the values pasted to A1 so only 1 value was seen (because they pasted over one another). I've tried a plethora of different syntaxes but nothing I've tried thus far has worked.
How do you specify "paste to the first open cell in Column A, sheet2"?