![]() |
Macro Loaction Problem
My macro is written in a workbook called BLANK WORKBOOK.xls.
When this macro is run it does a SaveAs because sheets are going to be added and it needs to be saved as a separate name. The BLANK WORKBOOK is a template that needs to be used several times however when the code does a SaveAs the macro is trasferred to the new work book. How do I keep the macro in the master BLANK WORKBOOK but also will be able to have the macro run locally in the new workbook as well? |
Macro Loaction Problem
Use two workbooks:
The first workbook (MYMAC.xls) has the macro The second workbook (MYTEMPLATE.xls) has the template (and no macros) The macro in MYMAC opens MYTEMPLATE, changes it, and does the SaveAs on the modified MYTEMPLATE -- Gary's Student gsnu200712 " wrote: My macro is written in a workbook called BLANK WORKBOOK.xls. When this macro is run it does a SaveAs because sheets are going to be added and it needs to be saved as a separate name. The BLANK WORKBOOK is a template that needs to be used several times however when the code does a SaveAs the macro is trasferred to the new work book. How do I keep the macro in the master BLANK WORKBOOK but also will be able to have the macro run locally in the new workbook as well? |
All times are GMT +1. The time now is 04:10 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com