How to make hyperlink create doc from template

  • Thread starter Thread starter vc7vc
  • Start date Start date
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
 
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
 
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
 
Back
Top