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
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,689
Messages
5,597,559
Members
414,156
Latest member
WDMix

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