Table of Contents: A Heading style on only part of a line

G

Gary Schankula

In Word 2002, I have a line like:

ABC Co. ^t 905-555-1234

where ^t is a tab character obviously. I would like ABC Co. to be in
the Table of Contents, but not the phone number. I can manually set
ABC Co. to a Heading style, while the rest of the line remains, say,
Normal, and thus create my ToC that way. But the document is too huge
to do anything manually. So I've tried Using Wildcards in a global
Find and Replace, but each time I've tried assigning one side of the
tab or the other side to a particular style, the entire line takes on
that style. I then thought that I could use the TC Field Code to
specify the exact text I want in the ToC. But again, I can manually
do it no problem, but I have no way to generate the Ctrl-F9 Field
braces in the Replace With box in Find & Replace.

By the way, my whole purpose in all this is to create a PDF document
from this Word document for both printing and use in Adobe Reader,
with Acrobat Bookmarks generated from the Word Heading styles. Any
help with my problem would be greatly appreciated.

Thanks,
Gary

Gary Schankula
Information Niagara
St. Catharines, Ontario, Canada
www.informationniagara.com
 
D

Doug Robbins - Word MVP

See response to your duplicate post in the microsoft.public.word.vba.general
newsgroup.

Please do not post the same question separately to multiple newsgroups.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

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