theblacknight
New Member
- Joined
- Apr 16, 2012
- Messages
- 4
Code:
Set crange = Worksheets(3).Range(Worksheets(3).Cells(5, 2), Worksheets(3).Cells(2, 5).End(xlDown))
Set prange = Worksheets(4).Cells(1, 26)
crange.Copy
prange.PasteSpecial Paste:=xlPasteValues
Set crange = Worksheets(3).Range(Worksheets(3).Cells(203, 2), Worksheets(3).Cells(203, 2).End(xlDown))
Set prange = Worksheets(4).Range(1, 26).End(xlDown).Offset(1, 0)
crange.Copy
prange.PasteSpecial Paste:=xlPasteValues
Set crange = Nothing
Set prange = Nothing
Any idea why the above code would cause a macro to copy paste different columns? All I want to do is select two ranges and paste them into another sheet. The wierd thing is when I press escape, the line where the break occurs is not in this section of the code. btw I'm a total newbie at programming so sorry if this is a stupid question.
Last edited by a moderator: