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

I ran into a few snags testing it at work. I think I could figure most of
them out, but am not sure I have the time right now, so will post it to see
if you can help. In my test, the macro did not catch 100-110 or 100-10 and
replace those with 100-110. It also missed 200-4 to replace with 200-204 (I
probably didn't give you that possibility to check for when writing the
original macro, so no problem there--just another permutation I thought of as
I was testing it).

The merge and compare function did work ok. I'm still trying to decide which
I like better--that or the way you wrote the macro to create a new blank
page. Is it possible to add in a command in the macro to also note which
pagethe correction came from? So, for instance, if I'm running the macro on a
200 page document, I can know that the change from 125-136 to 125-36 was from
page 26, etc.?

One final concern. Again, I think I can figure this out, but if you could
help, that would be great. I need to make sure that all hyphens in page
ranges are en dashes. It would be cool to get the macro to check for all page
ranges with hyphens and en dashes and change the resulting ranges to en
dashes. What would also work without too much modification to the macro is
just to do a quick find and replace for hyphens in number sequences and
change them to en dashes before running the macro. The macro then needs to be
changed to search for en dashes in number ranges rather than hyphens.

Thanks again--you've been extremely helpful.