Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

Where is hyperlink pointing to?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
olexij.tkatchenko@googlemail.com - 14 Nov 2006 11:29 GMT
Hello,
I have hyperlinks in my document, which are pointing to headings. The
subaddress of a hyperlink looks like "_Section_1".  I have expected,
that "_Section_1" is a bookmark in the Active document, but the
ActiveDocument.Bookmarks() list is empty. I would like to know, how can
I find the destination, especially the paragraph the hyperlink is
pointing to.
Stefan Blom - 14 Nov 2006 11:36 GMT
Bookmarks whose names start with an underscore are hidden. Do the
following to go to a hidden bookmark: In the Bookmark dialog box,
check the option for "Hidden bookmarks." You may have to click the
"Location" button to see the bookmark names. Select the name and click
Go To.

Signature

Stefan Blom
Microsoft Word MVP

> Hello,
> I have hyperlinks in my document, which are pointing to headings. The
[quoted text clipped - 3 lines]
> I find the destination, especially the paragraph the hyperlink is
> pointing to.
olexij.tkatchenko@googlemail.com - 14 Nov 2006 12:19 GMT
Stefan Blom schrieb:

> Bookmarks whose names start with an underscore are hidden. Do the
> following to go to a hidden bookmark: In the Bookmark dialog box,
[quoted text clipped - 15 lines]
> > I find the destination, especially the paragraph the hyperlink is
> > pointing to.

Thank you for the hint! Setting

      ActiveDocument.Bookmarks.ShowHidden = True

before using  ActiveDocument.Bookmarks solved my problem. The piece of
code I use:

       Dim BM As Bookmark
       ActiveDocument.Bookmarks.ShowHidden = True

       For j = ActiveDocument.Bookmarks.Count To 1 Step -1
         Set BM = ActiveDocument.Bookmarks(j)
         ' do some stuff
       Next j
Stefan Blom - 14 Nov 2006 12:34 GMT
I'm glad you found a solution, and thank you for the feedback.

Signature

Stefan Blom
Microsoft Word MVP

> Stefan Blom schrieb:
>
[quoted text clipped - 32 lines]
>           ' do some stuff
>         Next j
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.