How to open a template via link from a word page

J

JorgenNM

I am using MS Office 2000 on a WinXP PC.
I have created a page with some text and a few links to other pages all
placed in the same folder on our server. Works fine.

Now I want to open word report templates with different macros all placed in
above-mentioned folder. The macro is used to define the storage folder, in
which to store the form.

When I double-click the report template directly from explorer it opens as
expected, asks if I want the macro active. When save the report I have to
name it. Works as intended.

But when I open the template form the word document via a link to the
template, it opens but the macro doesn’t work. It looks like the “double
click†is missing.

I have seen a work around, but cannot remember where and how?

Is this problem only related to older versions of MS Office?
 
J

Jean-Guy Marcil

JorgenNM said:
I am using MS Office 2000 on a WinXP PC.
I have created a page with some text and a few links to other pages all
placed in the same folder on our server. Works fine.

Now I want to open word report templates with different macros all placed in
above-mentioned folder. The macro is used to define the storage folder, in
which to store the form.

When I double-click the report template directly from explorer it opens as
expected, asks if I want the macro active. When save the report I have to
name it. Works as intended.

But when I open the template form the word document via a link to the
template, it opens but the macro doesn’t work. It looks like the “double
click†is missing.

I have seen a work around, but cannot remember where and how?

I believe that the usual solution to this problem is to create Windows
shortcuts to the templates (*.lnk files) and have the hyperlink in Word point
to those shortcuts instead of pointing to the templates themslevs. For
example, if I create a shortcut from a template, and then change its target
to

"C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE"
"/tC:\Word_StartUp\My Template.dot"


A document based on "My Template.dot" is created. But, because this is done
from a hyperlink, you get all kinds of paranoid messages from Word and
Windows.


For the word from the horse's mouth, see
http://support.microsoft.com/default.aspx?scid=kb;en-us;290961


If you do not want those messages, you need a macro button (which can be
formatted to look like a hyperkink) which would call a macro to create a
document. If you want to go the macro route, let us know.
 
J

JorgenNM

Thank you for the reply.

I think a macro solution would be fine and without any version problems from
MS word ??

regards
Jorgen
 
J

Jean-Guy Marcil

JorgenNM said:
Thank you for the reply.

I think a macro solution would be fine and without any version problems from
MS word ??

Use a macro like this one:

Sub CreateDoc()

Documents.Add "C:\MyPath\MyTemplateName.dot"

End Sub


Then, in your document, create a macro Button like this:

{MACROBUTTON CreateDoc Double Click to create a document.}

(Where the {} are created via CTRL+F9)

As mentioned earlier, you can format the Macrobutton to look like a
hyperlink if you want to...
 

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