Create a hyperlink to a word doc.

madforgolf

Board Regular
Joined
Oct 20, 2006
Messages
177
Office Version
  1. 365
  2. 2016
Hi Folks,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
Is it possible to create a macro or code for the following issue?
<o:p> </o:p>
In column B I have a list of names (which could build to 500) that I aim to hyperlink each to their own word doc file. When adding a new name, can a macro run to check down the list to see if a hyperlink is made, if not add the link to a word doc using the same title as the cell in another folder. Thus it has to create the word file before it can be linked?
<o:p> </o:p>
I have a button that will put the names in alpha order.
<o:p> </o:p>
Cheers
Marty
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

madforgolf

Board Regular
Joined
Oct 20, 2006
Messages
177
Office Version
  1. 365
  2. 2016
I came across this today, is there more code that will help above question!The file name is where i have the folder.

Sub StartWordFile()
Dim docWord As Object
Set docWord = CreateObject("Word.Application")
docWord.Visible = True
docWord.Documents.Open Filename:="C:\Users\martin\Desktop\blank.doc"
End Sub
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,876
Messages
5,834,194
Members
430,263
Latest member
abz54

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
Top