Good Evening All,
So I'm having a problem copying text from one workbook to another and keeping the source formatting. Normally a person can use PasteSpecial or xlpaste:= and this can be accomplished. I think that my code that copies things and then pastes is the problem as it does not allow for the usual syntax? to work. Any thoughts would be greatly appreciated. I would like to keep my code as such (below) if possible.
Thanks in advance.
So I'm having a problem copying text from one workbook to another and keeping the source formatting. Normally a person can use PasteSpecial or xlpaste:= and this can be accomplished. I think that my code that copies things and then pastes is the problem as it does not allow for the usual syntax? to work. Any thoughts would be greatly appreciated. I would like to keep my code as such (below) if possible.
Rich (BB code):
sh2.Range("G11", sh2.Cells(Rows.Count, "G").End(xlUp)).Copy _
shxx.Cells(Rows.Count, 1).End(xlUp)(1, 9)' tried different variations of paste special or xlpaste:=... here to no avail
sh2.Range("I11", sh2.Cells(Rows.Count, "I").End(xlUp)).Copy _
shxx.Cells(Rows.Count, 1).End(xlUp)(1, 10)' tried different variations of paste special or xlpaste:=... here to no availsh2.Range("I1", sh2.Cells(Rows.Count, "I").End(xlUp)) _
.Replace What:=Chr(10), LookAt:=xlPart, Replacement:=" "
Thanks in advance.