
Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000 (german versions)
On Jan 24, 4:19 pm, Helmut Weber
<HelmutWe...@discussions.microsoft.com> wrote:
> Hi Avkokin,
>
[quoted text clipped - 13 lines]
> "red.sys" & chr(64) & "t-online.de"
> Word 2002, Windows 2000 (german versions)
Helmut, if possible how to show these bookmarks (name of bookmarks) as
hyperlinks?
Helmut Weber - 28 Jan 2008 15:47 GMT
Hi Avkokin,
I guess you mean that:
Sub Test6666a()
Dim oBkm As Bookmark
' make sure that there is an empty paragraph
' at the doc's end
ActiveDocument.Range.InsertAfter vbCrLf
For Each oBkm In ActiveDocument.Bookmarks
ActiveDocument.Hyperlinks.Add _
Anchor:=ActiveDocument.Paragraphs.Last.Range, _
SubAddress:=oBkm.Name, _
ScreenTip:="", _
TextToDisplay:=oBkm.Name
ActiveDocument.Range.InsertAfter vbCrLf
Next
End Sub
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP