Printing bookmarks

J

JohnW

We've developed a template that may need to be redone due to corruption, and
it's littered with docvariables and bookmarks. I've been able to print the
template out and display the hidden docvariable fields, but the bookmarks,
while onscreen in gray, don't appear on the printout (nor are they labled).
Any ideas?

John
 
D

Doug Robbins

The following macro will add a [ before the bookmark and " - bookmark name"
and a ] after it.

Dim abm As Bookmark
For Each abm In ActiveDocument.Bookmarks
abm.Range.InsertBefore "["
abm.Range.InsertAfter " - " & abm.Name & "]"
Next abm

--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top