Word Templates / Buttons

A

Andrew-9558

I have created several word templates and am looking to now create new
toolbars and buttons to click on to open the new template...any help
gratefully appreciated.
 
S

Stefan Blom

You can use the following macro:

Sub CreateDocFromTemplate()
Documents.Add "tryout.dot"
End Sub

Of course "tryout.dot" is just an example; you should use an existing
template name. No path is required assuming that the template is saved in
the templates folder of your Word installation.

You can then attach the template to a toolbar button as explained at
http://www.gmayor.com/installing_macro.htm.
 
S

Stefan Blom

Stefan Blom said:
You can use the following macro:

Sub CreateDocFromTemplate()
Documents.Add "tryout.dot"
End Sub

Of course "tryout.dot" is just an example; you should use an existing
template name. No path is required assuming that the template is saved in
the templates folder of your Word installation.

You can then attach the template to a toolbar button as explained at
http://www.gmayor.com/installing_macro.htm.

Corrected version: you can then attach the *macro* to a toolbar button.

--
Stefan Blom
Microsoft Word MVP
 

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

Top