I am working in a Excel2000 spreadsheet. We have created a button that copies a worksheet from our template to a new file. The problem I am having is that our template has a custom palette and the new file doesn't copy that.
Here is how we are copying the sheet.
Sub Picture17_Click()
Dim Sheetname
Dim Filename
Filename = ActiveWorkbook.Name
Sheetname = ActiveSheet.Name
Sheets(Sheetname).Select
Sheets(Sheetname).Copy
Application.Dialogs(xlDialogSaveAs).Show
Application.Workbooks(Filename).Activate
End Sub
I have about 4 rows that use the custom colors and would like to modify this macro to use them.
Any ideas?
Thanks
Steve
Here is how we are copying the sheet.
Sub Picture17_Click()
Dim Sheetname
Dim Filename
Filename = ActiveWorkbook.Name
Sheetname = ActiveSheet.Name
Sheets(Sheetname).Select
Sheets(Sheetname).Copy
Application.Dialogs(xlDialogSaveAs).Show
Application.Workbooks(Filename).Activate
End Sub
I have about 4 rows that use the custom colors and would like to modify this macro to use them.
Any ideas?
Thanks
Steve