open document based on template by hyperlink in word

  • Thread starter Thread starter pulse
  • Start date Start date
P

pulse

Hello,
I have a hyperlink in word and want to open a document that is based on a
template that's in the hyperlink.
Like adres: c:\test.dot and then open
document1.doc
based on test.dot. Is this possible. I read a solution (with a shortcut that
didn't work on my computer) about hyperlinks in internet explorer but that's
different I guess.
Thanks a lot
 
I know this is late, but I just saw this. Why don't you use a macrobutton field
in your document that you double click.

First, create a macro:
Sub OpenTest1Doc
Documents.Add Template:= _
"C:\test.dot", _
NewTemplate:=False, DocumentType:=0
End Sub

This will open a document based on test.dot

Next create this field:

{ macrobutton "OpenTest1Doc" "DisplayText" }

where the curly brackets are inserted by pressing Ctrl+jF9, not typed. It will
require double, instead of single clicking.
--
Hope this helps.

Phil
To assist in maintaining the thread for others who are interested, please post
any follow-up question or reply in the newsgroup and not directly to me:-)
 
If you also create an AutoNew macro in the document with the following code,
the macrobutton field will only require a single click.

Sub AutoNew()
Options.ButtonFieldClicks = 1
End Sub

Regards,
Chad
 
Back
Top