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 2004

Tip: Looking for answers? Try searching our database.

Generating own TOC with well-defined bookmark names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tvamvarg - 01 Oct 2004 07:55 GMT
Hi,
I'd like to generate a TOC where the bookmark names are based on the actual
heading (instead of the format "_TOC<some random number>" as used by
default). The reason is I want to keep the bookmark names even if I
re-generate the TOC, in order to be able to create external hyperlinks to
chapters within the document (if you regenerate the default TOC, the 'random
numbers' will change and make your external hyperlinks unusable).

It is much too cumbersome to create own bookmarks manually, the document is
a large one...

I'd be so grateful for any suggestions. I never did any macro programming or
VBA, but I am not new to programming. My Word version is 2003. Thanks!!!
Petter - 04 Nov 2004 09:55 GMT
Actually, the only thing I think I need to do to accomplish what I want is
this (some pseudo-code):

for all headings {
 create bookmark (bookmark name = heading text)
}

Could someone describe to me what this would look like in VBA?

Thanks!!
 
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.