C
Carl Rapson
I have a workbook that has some VBA code in the ThisWorkbook module to
define a toolbar button. This button uses VBA code in another module to save
a set of ranges to a new spreadsheet file. I accomplish this by creating a
new workbook, copying each range (each is on a separate worksheet), then
saving the new workbook with a new name. Unfortunately, the VBA code in
ThisWorkbook is also copied to the new workbook, so when the new spreadsheet
file is opened, it also has the toolbar button. Is there any way to do this
without also copying the VBA code from ThisWorkbook? Or, is there a way to
remove that code from the new file?
Thanks for any information,
Carl Rapson
define a toolbar button. This button uses VBA code in another module to save
a set of ranges to a new spreadsheet file. I accomplish this by creating a
new workbook, copying each range (each is on a separate worksheet), then
saving the new workbook with a new name. Unfortunately, the VBA code in
ThisWorkbook is also copied to the new workbook, so when the new spreadsheet
file is opened, it also has the toolbar button. Is there any way to do this
without also copying the VBA code from ThisWorkbook? Or, is there a way to
remove that code from the new file?
Thanks for any information,
Carl Rapson