Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening an xlt-file as an xls-file


Is that possible?

When I use Workbooks.Open it opens as an xlt-file. But I want to open
it as a new xls-file based on the xlt-template.


--
Whitestar
------------------------------------------------------------------------
Whitestar's Profile: http://www.excelforum.com/member.php...o&userid=28253
View this thread: http://www.excelforum.com/showthread...hreadid=478163

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Opening an xlt-file as an xls-file

Whitestar,
Using Excel 2000 and :
Application.Workbooks.Open PathToTemplateFolder & MyXLTTemplate

gives me an .xls file.

What's your code ?

NickHK

"Whitestar" wrote
in message ...

Is that possible?

When I use Workbooks.Open it opens as an xlt-file. But I want to open
it as a new xls-file based on the xlt-template.


--
Whitestar
------------------------------------------------------------------------
Whitestar's Profile:

http://www.excelforum.com/member.php...o&userid=28253
View this thread: http://www.excelforum.com/showthread...hreadid=478163



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening an xlt-file as an xls-file


Thanks for replying NickHK

I found it out. Incredible what can be accomplished by reading the
help. ;-)

In Excel 2003 i wrote:
Workbooks.Open Filename:= "c:\temp\testfile.xlt", Editable:=False

The "Editable:=False" bit did the trick :-)


--
Whitestar
------------------------------------------------------------------------
Whitestar's Profile: http://www.excelforum.com/member.php...o&userid=28253
View this thread: http://www.excelforum.com/showthread...hreadid=478163

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Opening an xlt-file as an xls-file

Or even:

workbooks.Add template:="c:\temp\testfile.xlt"



Whitestar wrote:

Thanks for replying NickHK

I found it out. Incredible what can be accomplished by reading the
help. ;-)

In Excel 2003 i wrote:
Workbooks.Open Filename:= "c:\temp\testfile.xlt", Editable:=False

The "Editable:=False" bit did the trick :-)

--
Whitestar
------------------------------------------------------------------------
Whitestar's Profile: http://www.excelforum.com/member.php...o&userid=28253
View this thread: http://www.excelforum.com/showthread...hreadid=478163


--

Dave Peterson
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
opening a file in Excel starts application but dose not open file Bob Shelton Excel Discussion (Misc queries) 1 July 2nd 08 07:51 PM
File:1 and File:2 -- Double Files when Opening One File dallin Excel Discussion (Misc queries) 1 January 25th 07 02:53 AM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
Error:Invalid File format,while opening an Excel Template file Saurabh Excel Programming 1 January 17th 05 07:15 AM


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

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"