View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default 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?