I am trying to copy a header and a set of data to a new worksheet for printing.
While I can copy the data fine the column widths are lost and running autofit on it again breaks the page. The column widths were set by hand manually when the page was originally designed.
Currently I have:
Dim tmp As Worksheet
Set tmp = Sheets.Add(after:=ActiveSheet)
RD.Copy tmp.Range("A1") ' Range data (set elsewhere)
RH.Copy tmp.Range("A1") ' Range header (set elsewhere)
I've tried using xlPasteSpecial and xlPasteAll but they give no difference while using the clipboard.
What do I need to do to copy the cell widths across sheets?