#1
|
|||
|
|||
Trying to find and copy all headings at the same time
I'm working with a document that's an Encyclopedia and it's formatted like this:
HEADING (ALL CAPS) (Body) To make a long story short, I'd like to able to copy all the headings at once, leaving out the bodies. The font for both headings and bodies is Candara 12pt. I tried Find, using: Any letter; Not small caps, All caps. But it doesn't find anything. I have a feeling even if it did find something, it would only find one letter at a time. Anyone know if it's possible to do what I'm trying to do? |
#2
|
|||
|
|||
It is very easy to do if your headings are formatted using heading styles. If you are not, I would urge you to go through and actually format your headings using heading styles. Note, the formatting of your heading styles can look the same as your body text (but all caps) if you want. See Why use Microsoft Word’s built-in heading styles?
Once you've done that, all you need to do is generate a table of contents without page numbers and you've got your headings list. By the way, ALL CAPS are hard to read. I would recommend Small Caps with a larger font size instead. The original formatting may not have been using an ALL CAPS font setting but simply by holding down the shift key. When you have a heading selected you can use the Shift-F3 key combination to change the capitalization to something a bit more normalized if you want. |
#3
|
|||
|
|||
Thanks for the reply. Unfortunately the headings aren't formatted with any style. I read the links you posted but didn't find anything about how to autoformat headings in a document that's already created. It sounds like I'd have to manually go through each one. If I'm wrong please tell me and if possible explain how to do it in as simple a way as possible. I experimented a few times with my document but didn't have any luck. Thanks.
|
#4
|
|||
|
|||
Quote:
I'm sorry, but formatting using Styles is central to how Word works and any attempt to skip that and reproduce that functionality is an exercise in frustration. For you to program it, you need to find what it is that makes one of your headings distinct, to a computer, and then get the computer to mark those in a given style. (If you can do this, you can also just program compilation of a list directly, but doing either would be a lot of work for me.) Someone familiar with the use of Wild Cards might be able to do a "replace" that you could run that would add the heading style for you. Find and Replace Using Wildcards Here are some ideas. Try this only in a copy of your document! Try searching using wildcards [A-Z][A-Z]*[A-Z]^13 and replacing with \1 formatted as a Heading. I haven't tried it. If it does not work, make notes on what you did and close your document without saving. Repost in a new thread with wildcard replace as a part of your subject line. |
#5
|
||||
|
||||
Try a wildcard Find/Replace, where:
Find = [A-Z0-9 ]@^13 Replace = ^& and set the Replace Style to, say, "Heading 1" You can then insert a Table of Contents into the document (References|Table of Contents) and, voila! - all your headings will appear there - with page numbers and an underlying field that, if you add/delete headings, can be updated to reflect the changes by nothing more complicated than a Print Preview.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
macropod you're a genius, that worked! My life just got a whole lot easier thanks to you.
|
#7
|
|||
|
|||
Quote:
Walt, that table of contents can be set up to order, including having no page numbers if that is what you want. How to create a table of contents in Microsoft Word |
#8
|
||||
|
||||
Hi Charles,
The Find expression picks up only paragraphs that consist of capitals, numbers and spaces.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IE Object: Run-time problem (the link is not clicked in run-time but not in step-in | tinfanide | Excel Programming | 1 | 03-04-2012 12:05 AM |
Bad view when using Find and Find & Replace - Word places found string on top line | paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Headings | Metamag | Word | 5 | 04-16-2011 09:30 PM |
Help! Find text in doc file & copy to another file | northstarman | Word | 1 | 11-05-2010 08:15 AM |
copy a file which does not have copy option | jkind | Word | 0 | 01-17-2010 09:25 AM |