Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Open XLS as though an XLT - unsaved copy in memory

Using Office 2003 and Windows XP;

Call me lazy; is there a way to open an unsaved copy of a normal XLS in
memory as though it were a template, without having to actually save the XLS
as an XLT?

If this is possible could someone please post generic example VBA or
VBScript to do it?

Thanks much in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Open XLS as though an XLT - unsaved copy in memory

Instead of

Workbooks.Open sFileName

use

Workbooks.Add sFileName

the workbook named sFileName will be used as a template, whether or not it
was saved as such.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"XP" wrote in message
...
Using Office 2003 and Windows XP;

Call me lazy; is there a way to open an unsaved copy of a normal XLS in
memory as though it were a template, without having to actually save the
XLS
as an XLT?

If this is possible could someone please post generic example VBA or
VBScript to do it?

Thanks much in advance.



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
Copy unsaved worksheet "Book" to a Saved workfile JimK Excel Worksheet Functions 4 February 7th 07 01:08 AM
Copy/Paste - Running out of Memory Cheval New Users to Excel 1 October 12th 06 01:40 PM
Not enough memory error - Can't open file jch Excel Discussion (Misc queries) 2 March 10th 05 09:29 PM
Open / Close Workbook Memory issue David Edison Excel Programming 0 November 17th 04 10:09 AM
Make an unsaved file copy in memory? idealist Excel Programming 5 April 22nd 04 04:31 PM


All times are GMT +1. The time now is 11:07 PM.

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"