Linking Word Templates to Excel Spreadsheet

lisa1

New Member
Joined
Jul 18, 2011
Messages
3
I have created a large number of work instructions using Word templates and I would like to make it easy for our engineers to figure out which template to use for each product. I have created an Excel spreadsheet with drop down boxes that allows them to fill out certain information about the part. Once all the information is filled in, it gives the title of the template they need to use. To make this even easier, I would really like to link the templates to the spreadsheet so when it decides the title of the template needed, it gives a link to the it so all they have to do is click on the link and fill out the sheet. Is this possible? Let me know if this doesn't make sense and I will try to explain it a little better.
Thanks!
Lisa
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If the title of the template is in a cell, you could use VBA that triggers when the title is displayed to add a hyperlink to that cell.

Turn on the macro recorder and manually add a hyperlink and the resulting code can be edited for reuse.

If the title of the template is not the same as the filename of the template then you will have to make a lookup table.
 
Upvote 0
Phil,
The title of the template is the same as the filename of the template and it will be displayed in a cell. Could you please explain how to use VBA to add a hyperlink to the template? I'm fairly new to this stuff.
Thanks a bunch! :)
 
Upvote 0
This code deletes adds a hyperlink and screen tip to the specified cell on worksheet 1:
Rich (BB code):
With Worksheets(1)
    .Hyperlinks.Add Anchor:=.Range("a5"), _
        Address:="http://example.microsoft.com", _
        ScreenTip:="Microsoft Web Site", _
        TextToDisplay:="Microsoft"
End With

And a belated 'Welcome to the Board!'
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,521
Members
452,923
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top