![]() |
|
|
|
#1
|
|||
|
|||
|
Hi,
I'm looking for a field function to generate a list of all bookmarks and their corresponding chapter. The Chapters are in the right formatting and a normal TOC works just fine. Best would be in form of a table like: Code:
----------------------------------------------------- | Bookmark: | Chapter: | ----------------------------------------------------- | Bookmark 1 | 3.9.1 | ----------------------------------------------------- | Bookmark 2 | 2.3.4 | . . . . Any help greatly appreciated |
|
#2
|
|||
|
|||
|
This is more complex than you might imagine. Word does not track "Chapters" as such. Your chapters are probably (I would hope) designated by a multilevel list linked to heading styles.
To do this you would need to find the bookmark and then relate that to the previous heading. The macro at https://www.msofficeforums.com/vba/1...bookmarks.html may help you get a start. Also Greg Maxey and Graham Mayor have bookmark utilities on their sites that might give you help. |
|
#3
|
|||
|
|||
|
Yes,
my chapters are a multilevel list with heading styles, don't know any other useable way of creating a TOC ;-) Listing all bookmarks was no problem with python, but getting the chapter-information is. Going to check the homepages of the two out, hopefully I'll find something useful ![]() Thank you |
|
#4
|
||||
|
||||
|
Perhaps you could explain why you're doing this. There may be a better way to achieve the desired result.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
| Tags |
| bookmarks, field function, toc |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Bookmarks in hyperlinks disappeared - HELP!!!
|
Marcebrown | PowerPoint | 5 | 03-02-2014 09:13 AM |
Macro to list all bookmarks
|
Marrick13 | Word VBA | 4 | 02-09-2012 08:00 PM |
| Bookmarks for a PDF? | Ownaholic | Word | 0 | 10-30-2010 12:27 AM |
| Bookmarks with different figure references | Dan_68 | Word | 0 | 02-15-2010 08:29 PM |
| Show bookmarks | dempen | Word | 2 | 01-14-2010 11:47 PM |