Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Remove macros in xls file, but keep macros in xlt file


I have a "Master" Excel template ".xlt" that contains macros to create,
format and protect a new worksheet.

After the "Master" "xlt" file is opened, and used to create, format,
and protect a worksheet, the macros are no longer needed or wanted in
the new "xls" file (but the macros are still wanted and needed in the
"Master" "xlt" file). How do you save the resulting "xls" file,
keeping the formatting and worksheet protection, without the "Master"
template's macros?

Is there a macro that can be created, that will not save the macros in
the "xls" file, but will keep the macros in the "Master" template "xlt"
file?


--
nulad
------------------------------------------------------------------------
nulad's Profile: http://www.excelforum.com/member.php...o&userid=33248
View this thread: http://www.excelforum.com/showthread...hreadid=530713

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Remove macros in xls file, but keep macros in xlt file

Hi,

You could put your macros in another workbook (preferably XLA) that your XLT
refers to. Your macros would have to cope with the fact that they be executed
on a workbook other than the one they are in.

Although generally this is fairly straightforward, if you have a lot of
recorded macros (in my experience) it could take an amount of reworking to
get the code to work as you expect.

Regards,

Chris.

--
Chris Marlow
MCSD.NET, Microsoft Office XP Master


"nulad" wrote:


I have a "Master" Excel template ".xlt" that contains macros to create,
format and protect a new worksheet.

After the "Master" "xlt" file is opened, and used to create, format,
and protect a worksheet, the macros are no longer needed or wanted in
the new "xls" file (but the macros are still wanted and needed in the
"Master" "xlt" file). How do you save the resulting "xls" file,
keeping the formatting and worksheet protection, without the "Master"
template's macros?

Is there a macro that can be created, that will not save the macros in
the "xls" file, but will keep the macros in the "Master" template "xlt"
file?


--
nulad
------------------------------------------------------------------------
nulad's Profile: http://www.excelforum.com/member.php...o&userid=33248
View this thread: http://www.excelforum.com/showthread...hreadid=530713


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
"openinf file..."ENABLE MACROS...DISABLE MACROS" F. Lawrence Kulchar Excel Discussion (Misc queries) 3 September 12th 06 10:33 AM
Excel '00, 1st file has macros, how to stop macro in 2nd file? kaptandrews Excel Discussion (Misc queries) 0 May 24th 06 03:07 PM
Remove excel macros from a file to be sent Michel R Excel Programming 1 February 15th 06 02:31 PM
save excel file from a table delimited file (.txt) using macros sedamfo New Users to Excel 1 February 15th 05 04:19 AM
creating an exe file with visual basic (installation file for Macros and Userforms) [email protected] Excel Programming 3 August 5th 04 10:16 AM


All times are GMT +1. The time now is 09:13 AM.

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

About Us

"It's about Microsoft Excel"