Hyperlinks

T

Tonya Marshall

Is there a way to create a hyperlink to open a new document from a
template? WD2002
 
D

Doug Robbins - Word MVP

Hi Tonya,

Yes, it can be done. In the insert hyperlink dialog, navigate to the
template that you want to use.

Note however that, at least in Word 2003, you will get the following warning
message:

Quote

Opening "[Template Path]\[Template Name.dot]"

Hyperlinks can be harmful to your computer and data. To protect your
computer, click only those hyperlinks from
trusted sources. Do you want to continue?

Unquote

You could instead insert a macro button that ran a macro that contained the
code

Documents.Add "[Template Path]\[Template Name.dot]"

and format the display text in blue so it looked like a hyperlink. You
would have to double click on it to activate it however, rather than
Ctrl+Click as you do for a hyperlink.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
T

Tonya Marshall

Thanks Doug. At work I want to make a document for frequently used
templates with hyperlinks to open a new doc from them and put it in the
Work menu. We have so many templates and even though they are in logical
folders, many have trouble finding them.
I'm going to try both methods to see what suits us best.
Tonya
Hi Tonya,

Yes, it can be done. In the insert hyperlink dialog, navigate to the
template that you want to use.

Note however that, at least in Word 2003, you will get the following warning
message:

Quote

Opening "[Template Path]\[Template Name.dot]"

Hyperlinks can be harmful to your computer and data. To protect your
computer, click only those hyperlinks from
trusted sources. Do you want to continue?

Unquote

You could instead insert a macro button that ran a macro that contained the
code

Documents.Add "[Template Path]\[Template Name.dot]"

and format the display text in blue so it looked like a hyperlink. You
would have to double click on it to activate it however, rather than
Ctrl+Click as you do for a hyperlink.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
T

Tonya Marshall

I tried the hyperlink method which would have been much faster but
unfortunately the hyperlink opens the template rather than creating a
new document. I can imagine what would happen to the templates.

The macro button method worked perfectly. I had to put mile-long paths
in the macros but with the use of a nice utility called Print Folders I
could copy and paste the paths. I have 18 macrobuttons so far and I
expect I'll be asked to put in other templates.

I took your suggestion and colored the "links" blue & underlined them so
they look like hyperlinks.

This will make it much easier for the users and they have quick access
to the document in the Work menu. I plan to make the doc read only so no
one can change it accidentally it while it's open.

Thank you very much.
Tonya

--
Tonya Marshall
Not using my valid email address
Hi Tonya,

Yes, it can be done. In the insert hyperlink dialog, navigate to the
template that you want to use.

Note however that, at least in Word 2003, you will get the following warning
message:

Quote

Opening "[Template Path]\[Template Name.dot]"

Hyperlinks can be harmful to your computer and data. To protect your
computer, click only those hyperlinks from
trusted sources. Do you want to continue?

Unquote

You could instead insert a macro button that ran a macro that contained the
code

Documents.Add "[Template Path]\[Template Name.dot]"

and format the display text in blue so it looked like a hyperlink. You
would have to double click on it to activate it however, rather than
Ctrl+Click as you do for a hyperlink.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
D

Doug Robbins - Word MVP

Hi Tonya,

With this method, your users may tire of having to respond to the question
about the document being read only, and you may also get problems if two
people try to open the document simultaneously.

What I would do is create an Add-in that would add a button to the toolbar,
when that button is clicked, a userform would be displayed and that form
would contain a combobox that contained a list of all of the templates. The
list of templates would be stored in an external file where it would be easy
to maintain. When a user selected a template from the combobox, and then
clicked on a button on the userform, the userform would close and a new
document would be created from that template.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
Tonya Marshall said:
I tried the hyperlink method which would have been much faster but
unfortunately the hyperlink opens the template rather than creating a
new document. I can imagine what would happen to the templates.

The macro button method worked perfectly. I had to put mile-long paths
in the macros but with the use of a nice utility called Print Folders I
could copy and paste the paths. I have 18 macrobuttons so far and I
expect I'll be asked to put in other templates.

I took your suggestion and colored the "links" blue & underlined them so
they look like hyperlinks.

This will make it much easier for the users and they have quick access
to the document in the Work menu. I plan to make the doc read only so no
one can change it accidentally it while it's open.

Thank you very much.
Tonya

--
Tonya Marshall
Not using my valid email address
Hi Tonya,

Yes, it can be done. In the insert hyperlink dialog, navigate to the
template that you want to use.

Note however that, at least in Word 2003, you will get the following warning
message:

Quote

Opening "[Template Path]\[Template Name.dot]"

Hyperlinks can be harmful to your computer and data. To protect your
computer, click only those hyperlinks from
trusted sources. Do you want to continue?

Unquote

You could instead insert a macro button that ran a macro that contained the
code

Documents.Add "[Template Path]\[Template Name.dot]"

and format the display text in blue so it looked like a hyperlink. You
would have to double click on it to activate it however, rather than
Ctrl+Click as you do for a hyperlink.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
Tonya Marshall said:
Is there a way to create a hyperlink to open a new document from a
template? WD2002
 
T

Tonya Marshall

Doug,
Ah! Great idea. I'm going to have to learn about userforms and combo
boxes before I do that. The little I know would probably just get me
into trouble. I'll not make the doc read only and back it up somewhere
else for now and get my nose in the mvps site and do some learning. I'm
always up for learning more. :)
I'll probably be back with more questions about this.
Thank you,
Tonya
Hi Tonya,

With this method, your users may tire of having to respond to the question
about the document being read only, and you may also get problems if two
people try to open the document simultaneously.

What I would do is create an Add-in that would add a button to the toolbar,
when that button is clicked, a userform would be displayed and that form
would contain a combobox that contained a list of all of the templates. The
list of templates would be stored in an external file where it would be easy
to maintain. When a user selected a template from the combobox, and then
clicked on a button on the userform, the userform would close and a new
document would be created from that template.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
Tonya Marshall said:
I tried the hyperlink method which would have been much faster but
unfortunately the hyperlink opens the template rather than creating a
new document. I can imagine what would happen to the templates.

The macro button method worked perfectly. I had to put mile-long paths
in the macros but with the use of a nice utility called Print Folders I
could copy and paste the paths. I have 18 macrobuttons so far and I
expect I'll be asked to put in other templates.

I took your suggestion and colored the "links" blue & underlined them so
they look like hyperlinks.

This will make it much easier for the users and they have quick access
to the document in the Work menu. I plan to make the doc read only so no
one can change it accidentally it while it's open.

Thank you very much.
Tonya

--
Tonya Marshall
Not using my valid email address
Hi Tonya,

Yes, it can be done. In the insert hyperlink dialog, navigate to the
template that you want to use.

Note however that, at least in Word 2003, you will get the following warning
message:

Quote

Opening "[Template Path]\[Template Name.dot]"

Hyperlinks can be harmful to your computer and data. To protect your
computer, click only those hyperlinks from
trusted sources. Do you want to continue?

Unquote

You could instead insert a macro button that ran a macro that contained the
code

Documents.Add "[Template Path]\[Template Name.dot]"

and format the display text in blue so it looked like a hyperlink. You
would have to double click on it to activate it however, rather than
Ctrl+Click as you do for a hyperlink.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
Is there a way to create a hyperlink to open a new document from a
template? WD2002
 

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