Template opening

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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....
 
With each new Excel session template numbering starts over. I don't think
you can change that.

--
Jim
|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....
|
|
 
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:
 
Sorry but I don't know DDE..

--
Jim
| 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
| > | > |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....
| > |
| > |
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top