Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Template Save As retains existing name!!

I have a template called PkLstTemplate1.xlt saved in the template directory.

A user opens this template by clicking on a sortcut to it.
When the template opens it has a name of PkLstTemplate11 (no .xls extension)

VB code in Workbook_Open prompts the user for information
and successfully saves the file using the ActiveWorkbook.SaveAs command.
For example say the code saved the file as XYZ.xls

After the save has completed, the activeworkbook SHOULD be XYZ.xls,
but it is still PkLstTemplate11.

If the user clicks on File-Save as and gives it a new name the active
workbook becomes this new name as normal.

What am I missing? Why does the active sheet not take the name of
the file it just saved?

The code in this template used to work flawlessly every time.
For some reason it stopped working one day!

Thanks,

Brent
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Template Save As retains existing name!!

Can't help troubleshoot code very well without the code. :(

"Brent Fidler" wrote in message
om...
I have a template called PkLstTemplate1.xlt saved in the template

directory.

A user opens this template by clicking on a sortcut to it.
When the template opens it has a name of PkLstTemplate11 (no .xls

extension)

VB code in Workbook_Open prompts the user for information
and successfully saves the file using the ActiveWorkbook.SaveAs command.
For example say the code saved the file as XYZ.xls

After the save has completed, the activeworkbook SHOULD be XYZ.xls,
but it is still PkLstTemplate11.

If the user clicks on File-Save as and gives it a new name the active
workbook becomes this new name as normal.

What am I missing? Why does the active sheet not take the name of
the file it just saved?

The code in this template used to work flawlessly every time.
For some reason it stopped working one day!

Thanks,

Brent



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Template Save As retains existing name!!

My guesses:

The save failed for some reason.
(Do you have an "on error resume next" masking errors?)

or the code does a .savecopyas (instead of .saveas).



Brent Fidler wrote:

I have a template called PkLstTemplate1.xlt saved in the template directory.

A user opens this template by clicking on a sortcut to it.
When the template opens it has a name of PkLstTemplate11 (no .xls extension)

VB code in Workbook_Open prompts the user for information
and successfully saves the file using the ActiveWorkbook.SaveAs command.
For example say the code saved the file as XYZ.xls

After the save has completed, the activeworkbook SHOULD be XYZ.xls,
but it is still PkLstTemplate11.

If the user clicks on File-Save as and gives it a new name the active
workbook becomes this new name as normal.

What am I missing? Why does the active sheet not take the name of
the file it just saved?

The code in this template used to work flawlessly every time.
For some reason it stopped working one day!

Thanks,

Brent


--

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
is it possible to apply template to a existing worksheet Andy Excel Worksheet Functions 2 May 12th 06 09:31 PM
Template changes to existing workbooks farmkid21 Excel Worksheet Functions 2 March 23rd 06 06:51 PM
apply a template to existing worksheet ambrish Excel Discussion (Misc queries) 1 October 19th 05 02:13 PM
The Template Wizard retains the original location for my database Packwood Excel Discussion (Misc queries) 0 April 15th 05 05:25 PM
Macro that retains password. SpeeD72 Excel Programming 1 August 11th 03 01:34 AM


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