Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default New from Template Issue

I have an Excel template that upon opening launches a dialog box and
retrieves another workbook into Excel. If I open the first template by
retrieving it straight into Excel or double-clicking it from Explorer, then
ActiveWorkbook.Path gives its location on disk, which I can then use to
retrieve the second template from the same folder. However, if the file is
opened using the New Task Pane in the "New from Template" option,
ActiveWorkbook.Path contains "". Is there any way to determine the original
path from which a new workbook was created?

Thanks,
Mike Thurgood
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default New from Template Issue

If you open the .xlt (template workbook) to edit, you can get the path.

But if you use the .xlt to create a new workbook, then the path isn't
available. It's not like word and .dot files.

In fact, one of your windows setting is non-standard. When you double click on
a .xlt file, the default action is usually New--not Open. So I guess you were
kind of lucky doing that.

If you want to fix that "problem", you can reregister excel.
close excel
windows start button|run
excel /unregserver
then
windows start button|run
excel /regserver

(But you may not want to do this!)



Mike Thurgood wrote:

I have an Excel template that upon opening launches a dialog box and
retrieves another workbook into Excel. If I open the first template by
retrieving it straight into Excel or double-clicking it from Explorer, then
ActiveWorkbook.Path gives its location on disk, which I can then use to
retrieve the second template from the same folder. However, if the file is
opened using the New Task Pane in the "New from Template" option,
ActiveWorkbook.Path contains "". Is there any way to determine the original
path from which a new workbook was created?

Thanks,
Mike Thurgood


--

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
NCAA tournament brackets template from Template gallery. smcclements Excel Worksheet Functions 2 March 16th 07 02:33 PM
Issue with Template Wizard and SharePoint Document Library Pandoro Excel Discussion (Misc queries) 0 May 8th 06 03:40 AM
Excel Template Issue Skc Excel Discussion (Misc queries) 1 February 9th 06 04:11 AM
need inv/rec/issue template Material Maven Excel Discussion (Misc queries) 1 November 5th 05 10:18 PM
Excel template to load automatically as the default template? David Excel Discussion (Misc queries) 1 March 21st 05 12:24 PM


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