upon button press, I have a VBA Macro that copies the information from my active sheet, opens up a new workbook and pastes the copied data into "sheet1". When I use the "ActiveSheet.Paste" command, all text and graphs copy over, but the column widths do not. When I use "PasteSpecial", the text and proper column widths transfer over, but none of the graphs do.
See code below:
The code below copies all of the text and graphs, but doesn’t paste column widths so the result is really ugly
Range("A1:W500").Select
Selection.Copy 'copies the range above
Windows(NewWorkBookName).Activate 'activates the new workbook again
ActiveSheet.Paste
The code below pastes the proper column widths, but not the graphs.
Sheets("Dashboard").Range("A1:Z500").Copy
Windows(NewWorkBookName).Activate
With Sheets("Sheet1").Range("A1")
.PasteSpecial xlPasteAll
.PasteSpecial xlPasteColumnWidths
.PasteSpecial xlPasteAllUsingSourceTheme
End With
Application.CutCopyMode = False
Any idea what is going on, and how I can fix this? THANKS!!