Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mass hyperlink edit in Word

Status
Not open for further replies.

benniesanders

Programmer
Jan 20, 2002
199
US
Greetings,

I'm using Word 2003. I have a 39 page document with 20 hyperlinks on each page. this will be turned into a web page eventually. I need to change the target of each hyperlink to open in a new window. Is there a way to do a blanket change on all hyperlinks through VBA? Many thanks for your input.
 
Figure out the code for one, then make a hyperlink object and loop through the hyperlink collection.
Code:
Dim oHyperlink As Word.Hyperlink
For Each oHyperlink In ActiveDocument.Hyperlinks
   ..... the code
Next

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top