Home |
Search |
Today's Posts |
#3
Posted to microsoft.public.word.tables
|
|||
|
|||
modifying all TC field codes to decrease their outline level
Thanks very much; just the kind of idea that I was thinking would be out
here somewhere. I need to study up a bit on the search/replace syntax to understand this, but the idea of it in a loop seems a whole lot more reliable than my trying to parse each field code myself. Thanks again. Chip "Jezebel" wrote in message ... You can do it using Find and Replace instructions. Try this manually until you're comfortable with what's going on, then code it as your macro -- 1. Dispay hidden text and field codes, so the TC fields are visible. 2. For each TC level, starting with the highest that might be used in the document and working backwards (eg 4, then 3, 2, 1) -- -- use Find and Replace with 'Use wildcards' checked -- search for: (TC*\\l @)4 (open-bracket TC asterisk slash slash ell space @ close-bracket level-number) -- replace with: \15 (slash one level-number-plus-one) You could put this into a loop -- For pIndex = 5 to 1 step -1 pSearch = "(TC*\\l @)" & pIndex pReplace = "\1" & pIndex + 1 .... Next "Chip Orange" wrote in message ... We have a need to take a document full of TC field codes, and with an autoopen macro, have them all decrease their outline level indication (so that a level one TC field becomes level 2, etc.). Does anyone know of an example or easy way to do this (other than the obvious one of writing a macro to process all fields in the doc, looking for TC field codes, parsing out the level indication, modifying it, recreating the field, etc.). Thanks. Chip |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Customize Outline Numbered List box question | New Users | |||
Secondary page numbering using field codes | Microsoft Word Help | |||
Multiple Outline Numbering | Page Layout | |||
Index field codes appear even when Hidden Text is turned off | Microsoft Word Help | |||
Field Codes | Microsoft Word Help |