open document based on template by hyperlink in word

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
 
P

Phil Rabichow

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:)
 
C

Chad DeMeyer

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
 

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