Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to replace words on the hyperlinks

45 views
Skip to first unread message

avkokin

unread,
Jan 21, 2008, 4:01:40 AM1/21/08
to
Hello. I have one document where there is many words as hyperlinks. I
need to replace these words on the direct links (e.g., instead of
Google must be the link http://google.com). How I can do it? Thanks.

Helmut Weber

unread,
Jan 21, 2008, 5:15:02 AM1/21/08
to
Hi Avkokin,

Try:

Sub Test3991()
Dim oHpl As Hyperlink
For Each oHpl In ActiveDocument.Hyperlinks
oHpl.TextToDisplay = oHpl.Address
Next
End Sub

--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Word 2002, Windows 2000 (german versions)


0 new messages