View Single Post
 
Old 05-09-2016, 08:14 AM
vince692 vince692 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: May 2016
Posts: 22
vince692 is on a distinguished road
Question Get tab_hyperlinks from Word Document

Hi,

I am a newbie so every thought will be helpfull ! This is my first vb script...
I'd like to get all hyperlinks into a Word document as table.

Here's my current code de get all hyperlinks :

Quote:
For Each hlien In ActiveDocument.Hyperlinks
With hlien
message = message & .TextToDisplay & .Address & vbCrLf
End With
Next
MsgBox message
My issue is that i need to get only one of the hyperlink. In "message" i got one string with all hyperlink which is not good for me. I want to get the only one i am interesting in.
My thought was instead of getting all hyperlink in one string, getting all hyperlink as table could help me searching special caractere into the tab to get the right index&value.

Hope this is not too foggy.
Any hints will be apreciated !
Best Regards,
Vincent
Reply With Quote