Thanks! I figured it out and I've got it working. The only problem is, now I
need to replace the field codes of about 40 or 50 tables. For example,
instead of
{ STYLEREF 1 \s }
I need to replace it with { STYLEREF "EPRI Chapter Number" \n }
Is there a quick and easy way to do this?
Thanks again,
Gwen H
> > I have a document with multiple chapters. The first page of each chapter has
> > this:
[quoted text clipped - 25 lines]
> previous Heading 1 number and {STYLEREF 1 } to display the previous Heading 1
> text.
Never mind, I answered my own question. I pressed Alt + F9 to toggle field
codes off. I selected the one correct field code and pressed CTRL + C. Then I
positioned my cursor immediately after the first incorrect field code. I
defined a macro that would select the field codes by pressing the shift key
and hitting the left arrow key 5 times. Then I had the macro do CTRL + V.
After that, all I had to do was find each incorrect field code, click
immediately after it, and run the macro. It might not be the most elegant
solution, but it got the job done in a fairly short amount of time.
Thanks anyway,
Gwen H
> Thanks! I figured it out and I've got it working. The only problem is, now I
> need to replace the field codes of about 40 or 50 tables. For example,
[quoted text clipped - 38 lines]
> > previous Heading 1 number and {STYLEREF 1 } to display the previous Heading 1
> > text.
Jean-Guy Marcil - 26 Feb 2008 13:36 GMT
> Never mind, I answered my own question. I pressed Alt + F9 to toggle field
> codes off. I selected the one correct field code and pressed CTRL + C. Then I
[quoted text clipped - 5 lines]
> immediately after it, and run the macro. It might not be the most elegant
> solution, but it got the job done in a fairly short amount of time.
After you hit ALT-F9, you could have used the Find/Replace dialog to do it
even faster...
GwenH - 26 Feb 2008 16:30 GMT
Nope, tried that, and it didn't work.
Gwen H
> > Never mind, I answered my own question. I pressed Alt + F9 to toggle field
> > codes off. I selected the one correct field code and pressed CTRL + C. Then I
[quoted text clipped - 8 lines]
> After you hit ALT-F9, you could have used the Find/Replace dialog to do it
> even faster...
Stefan Blom - 27 Feb 2008 09:50 GMT
Find and replace should definitley work with field codes. Example, with
field codes displayed:
"Find what": STYLEREF 1 \s
"Replace with": STYLEREF "My custom style" \n

Signature
Stefan Blom
Microsoft Word MVP
> Nope, tried that, and it didn't work.
>
[quoted text clipped - 19 lines]
>> it
>> even faster...
Jean-Guy Marcil - 27 Feb 2008 15:18 GMT
> Nope, tried that, and it didn't work.
I am sorry, but then it means you did something wrong.
I use Find/Replace to modify/update field codes all the time.