Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default 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?

  #2   Report Post  
Posted to microsoft.public.excel.misc
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?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Macro ChuckW Excel Discussion (Misc queries) 0 March 28th 07 01:16 AM
Macro Problem Angel_24477616 Excel Worksheet Functions 2 March 9th 07 11:28 AM
Macro problem tweacle Excel Worksheet Functions 0 February 15th 06 08:26 PM
macro problem tweacle Excel Worksheet Functions 0 December 27th 05 12:27 PM
Macro problem Frazer Excel Discussion (Misc queries) 3 August 18th 05 01:43 PM


All times are GMT +1. The time now is 10:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"