New Workbook based on Template

  • Thread starter Thread starter maxhugen
  • Start date Start date
M

maxhugen

Is there any way that I can create a shortcut that opens a new workbook
based on a template.

In MS word, a command line switch is provided to do just that, eg:

winword.exe /t"H:\Templates\Alpha Financial\Letter.dot"

MTIA
 
Maybe you can use a helper workbook.

Your shortcut would look like:

excel "C:\my documents\excel\book1.xls"

But inside book1.xls, you'd have an auto_open macro that looked like:

Option Explicit
Sub auto_open()
Workbooks.Add template:="H:\Templates\Alpha Financial\workbook.xlt"
ThisWorkbook.Close savechanges:=False
End Sub
 
maxhugen said:
Is there any way that I can create a shortcut that opens a new workbook,
based on a template.

In MS word, a command line switch is provided to do just that, eg:

winword.exe /t"H:\Templates\Alpha Financial\Letter.dot"

MTIA!

How about just having the template name as the command line (shortcut),
if the associations are correct it should work ok.

W
 
Doh!



William said:
How about just having the template name as the command line (shortcut),
if the associations are correct it should work ok.

W
 
Hi William, Dave

Yes, the shortcut worked just fine! For some reason that didn't mak
sense to me so I didn't even try it!

I was thinking I might have to do just what you suggested, Dave, bu
there you go - such a simple solution!

Many thanks for your help!

Cheers From Downunder
 

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

Back
Top