Harley78
Electrical
- May 8, 2007
- 77
Maybe someone can help....
I have created a simple macro that copies a worksheet (in the same workbook)and inserts a new worksheet. However, the format is totally different. The copied worksheet is landscape, but when it copies and inserts, it changes the column(s) dims as well as portrait. Also paste what ever you filled out on the original worksheet. So I just need a few tips on how to eliminate the data after it is copied and how to fix the format problem I am having.
Macro for copying the worksheet:
Private Sub CommandButton1_Click()
' IF YOU REQUIRE ADDITIONAL PAGE OF "MMD"
Sheets.Add
Sheets("MMD").Select
Cells.Select
Selection.Copy
Sheets("Sheet30").Select
ActiveSheet.Paste
End Sub
Thanks a bunch
I have created a simple macro that copies a worksheet (in the same workbook)and inserts a new worksheet. However, the format is totally different. The copied worksheet is landscape, but when it copies and inserts, it changes the column(s) dims as well as portrait. Also paste what ever you filled out on the original worksheet. So I just need a few tips on how to eliminate the data after it is copied and how to fix the format problem I am having.
Macro for copying the worksheet:
Private Sub CommandButton1_Click()
' IF YOU REQUIRE ADDITIONAL PAGE OF "MMD"
Sheets.Add
Sheets("MMD").Select
Cells.Select
Selection.Copy
Sheets("Sheet30").Select
ActiveSheet.Paste
End Sub
Thanks a bunch