G
Guest
Hello,
I am almost there, just running into an error. I am copying the row from
one workbook and pasting it to the last row in another. The column sizes are
different and I only want to paste the values. I am facing a copy area and
paste area are not the same size' error. Please help. Here is my code:
Rows("59:59").Select
Selection.Copy
Workbooks.Open Filename:= _
"C:\Documents and Settings\Mike\My Documents\testbook.xls"
Set rng = Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
rng.PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.Save
thank you,
I am almost there, just running into an error. I am copying the row from
one workbook and pasting it to the last row in another. The column sizes are
different and I only want to paste the values. I am facing a copy area and
paste area are not the same size' error. Please help. Here is my code:
Rows("59:59").Select
Selection.Copy
Workbooks.Open Filename:= _
"C:\Documents and Settings\Mike\My Documents\testbook.xls"
Set rng = Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
rng.PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.Save
thank you,