View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
JeremyC
 
Posts: n/a
Default Using find and replace or macros to replace page ranges

Thanks. Will that make exceptions for numbers such as 200-204, which should
not be shortened, or for 202-204, which should be shortened to 202-4? Also,
will that create notation to show which numbers were changed? I'm thinking
that it won't work for these special circumstances, but perhaps I can figure
out how to modify it do so.

"JeremyC" wrote:

I am using Word 2003, but if I can successfully figure out how to do this, I
would also like to be able to do the same on Word 2004 for Mac.

I am trying to figure out a way to automate replacing numbers in page ranges
to match the Chicago Manual of Style. For instance, I need to change 149-167
to 149-67, but not 149-249 to 149-49 or not 106-108 to 106-08 (instead that
should go to 106-8). I'm not sure I have thought out all the exceptions,
though these are the most basic. I am mainly looking for the methodology to
use, whether through find and replace or macros. I don't want to spend too
much time trying to figure it out, because I'm not sure the return will be
worth a lot of time invested.

I know that by using wildcard search and replace I can do most of this. For
instance, I could search for
([!0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9]) and replace with
\1\2\3\4\\5\6, replacing something like 125126 to "12526. But that
doesn't help me with all because I would still have to make adjustments for
the above-mentioned exceptions.

If automating using macros is the best choice, I would also like to figure
out a way to double-check that changes were made correctly and there were no
mistakes. So is it possible to write into the macro (if doing a macro) to
copy all replacements (or all things being replaced) into a blank word
document to be able to quickly scan all instances of replacements? Or to
highlight all changes made in the document to be able to quickly pick up what
was changed?

Does this make sense? Can anyone help? Thanks.