Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Excel template and default save name

I'm using excel 2003.
When I open my template (xlt) file via double clicking and then exit excel,
the saveas dialog is displayed using the template file name with an xls
extension as the default name.

Is there a way I can set the default name to be the content of one of the
cells in the template? I want to force the default name of the file. This
needs to work with the save, saveas and exit function.

Thanks,
- Pat
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,696
Default Excel template and default save name

Select Case file_reference
Case xls
file_type = "xlNormal"
..
..
..
End Select

ActiveWorkbook.SaveAs Filename:= _
Cell_Reference, FileFormat:=file_type, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

Where Cell_Reference is the cell that has the file name and file_reference
is the cell holding the file type you desire. file_type is your variable to
hold the excel back-end name for your file type.

"Dreiding" wrote:

I'm using excel 2003.
When I open my template (xlt) file via double clicking and then exit excel,
the saveas dialog is displayed using the template file name with an xls
extension as the default name.

Is there a way I can set the default name to be the content of one of the
cells in the template? I want to force the default name of the file. This
needs to work with the save, saveas and exit function.

Thanks,
- Pat

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
How to make a .XLTM template file default to save as .XLSM type? NZCoyote Excel Discussion (Misc queries) 1 April 8th 10 06:01 AM
Need Help with Default Template in Excel T.C. Mann Excel Discussion (Misc queries) 2 May 2nd 07 07:37 PM
Setting a default save folder for a template postitnote100 Excel Discussion (Misc queries) 1 July 8th 05 09:30 PM
Excel template to load automatically as the default template? David Excel Discussion (Misc queries) 1 March 21st 05 12:24 PM
Default excel Template shivakumar Excel Programming 1 July 9th 03 03:00 AM


All times are GMT +1. The time now is 04:23 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"