#1   Report Post  
Posted to microsoft.public.excel.misc
Galliano
 
Posts: n/a
Default Template opening

I am trying to open a template through code. Something like:

run program "C:\Program\Microsoft Office\Office10\excel.exe
C:\temp\template.xlt /n"

I want excel to open a worksheet called template1 from the template. Next
time I want it to open template2 and so on.... As it is now it keep opening
template1 so after a few tries I have a number of template1:s... No good
since I want to keep them apart....


  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Rech
 
Posts: n/a
Default Template opening

With each new Excel session template numbering starts over. I don't think
you can change that.

--
Jim
"Galliano" wrote in message
...
|I am trying to open a template through code. Something like:
|
| run program "C:\Program\Microsoft Office\Office10\excel.exe
| C:\temp\template.xlt /n"
|
| I want excel to open a worksheet called template1 from the template. Next
| time I want it to open template2 and so on.... As it is now it keep
opening
| template1 so after a few tries I have a number of template1:s... No good
| since I want to keep them apart....
|
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
Galliano
 
Posts: n/a
Default Template opening

Ok... thats´s fair... But is there anyway I can open a template with a
"DDE-command"?

I have tried to send in the same syntax as in vB:

DDEExecute chan_num, "[Workbooks.Add Template:=""c:\temptemplate.xlt""]"

But that´s not working...



"Jim Rech" skrev:

With each new Excel session template numbering starts over. I don't think
you can change that.

--
Jim
"Galliano" wrote in message
...
|I am trying to open a template through code. Something like:
|
| run program "C:\Program\Microsoft Office\Office10\excel.exe
| C:\temp\template.xlt /n"
|
| I want excel to open a worksheet called template1 from the template. Next
| time I want it to open template2 and so on.... As it is now it keep
opening
| template1 so after a few tries I have a number of template1:s... No good
| since I want to keep them apart....
|
|



  #4   Report Post  
Posted to microsoft.public.excel.misc
Jim Rech
 
Posts: n/a
Default Template opening

Sorry but I don't know DDE..

--
Jim
"Galliano" wrote in message
...
| Ok... thats´s fair... But is there anyway I can open a template with a
| "DDE-command"?
|
| I have tried to send in the same syntax as in vB:
|
| DDEExecute chan_num, "[Workbooks.Add Template:=""c:\temptemplate.xlt""]"
|
| But that´s not working...
|
|
|
| "Jim Rech" skrev:
|
| With each new Excel session template numbering starts over. I don't
think
| you can change that.
|
| --
| Jim
| "Galliano" wrote in message
| ...
| |I am trying to open a template through code. Something like:
| |
| | run program "C:\Program\Microsoft Office\Office10\excel.exe
| | C:\temp\template.xlt /n"
| |
| | I want excel to open a worksheet called template1 from the template.
Next
| | time I want it to open template2 and so on.... As it is now it keep
| opening
| | template1 so after a few tries I have a number of template1:s... No
good
| | since I want to keep them apart....
| |
| |
|
|
|


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
=IF problem EdoZwart Excel Discussion (Misc queries) 5 January 5th 06 03:29 PM
Need One Excel Template to copy to TWO Databases gildo4realdo Excel Discussion (Misc queries) 0 July 29th 05 03:57 PM
Opening an Excel template from a 3rd party app TonyL Excel Discussion (Misc queries) 2 June 15th 05 02:05 AM
Opening a template form & renaming it from a cell input automatica John Galt Excel Discussion (Misc queries) 0 April 19th 05 09:16 PM
Template in Excel prettytwin1 New Users to Excel 1 March 9th 05 09:22 PM


All times are GMT +1. The time now is 10:54 AM.

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"