How to make hyperlink create doc from template

V

vc7vc

When I create a hyperlink to a template, the hyperlink opens the template.
Is there a switch or something else I can do to make the hyperlink create a
document from the template?

TIA,
Vivian
 
D

Doug Robbins - Word MVP

You could use a macrobutton field that runs a macro that contains the code
to create a new document from the template and that displays the template
path\name formatted so that it has the appearance of a hyperlink

See the article "Using MacroButton fields†at:

http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm

The code for the macro would be

Dim Newdoc as Document
Set Newdoc = Documents.Add("TemplateName.dot")


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
V

vc7vc

Good idea! Thanks Doug.

Doug Robbins - Word MVP said:
You could use a macrobutton field that runs a macro that contains the code
to create a new document from the template and that displays the template
path\name formatted so that it has the appearance of a hyperlink

See the article "Using MacroButton fields†at:

http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm

The code for the macro would be

Dim Newdoc as Document
Set Newdoc = Documents.Add("TemplateName.dot")


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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