How can I change the copy Destination: line of code to copy as values?
i = 105 P = 5 Do Until shtL.Cells(i + 4, 3) = "" Set rCopy = shtL.Cells(i, 47).Resize(1, 223) If shtL.Cells(i, 3).End(xlDown).row < 109 Then rCopy.copy Destination:=shtL.Cells(5, 47) Else rCopy.copy Destination:=shtL.Cells(P, 47) End If i = i + 7 P = P + 1 Loop
Last edited by rhudgins; 10-25-2010 at 01:26 PM.
You can use the PasteSpecial method, requiring the destination command on a line of its own:
i = 105 P = 5 Do Until shtL.Cells(i + 4, 3) = "" Set rCopy = shtL.Cells(i, 47).Resize(1, 223) rCopy.Copy If shtL.Cells(i, 3).End(xlDown).row < 109 Then shtL.Cells(5, 47).PasteSpecial xlPasteValues Else shtL.Cells(P, 47).PasteSpecial xlPasteValues End If i = i + 7 P = P + 1 Loop
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks