R
rasiel5
Could some kind soul please help?
I need a macro that will shift a number range within a text string.
The macro would ask me the text string (just one letter) and the
starting number. When run it will perform a find and replace on the
letter-number pair and bump up by number X all codes found in the
document while leaving any codes outside of the range untouched.
So, to use an axample:
If I have these codes in a document:
R001
R002
R003
R050
R066
R099
And my goal is to bump by one all codes higher than R025 by, say, 1 my
end result after running the macro would be:
R001
R002
R003
R051
R067
R100
This is for a numismatic project containing lists of these codes often
running into the thousands which currently has to be done manually.
I'm using Word 2003. I'll be happy to send an ancient coin to anyone
kind enough to write me such a code!
Ras
rasiel@ dirty old coins.com
I need a macro that will shift a number range within a text string.
The macro would ask me the text string (just one letter) and the
starting number. When run it will perform a find and replace on the
letter-number pair and bump up by number X all codes found in the
document while leaving any codes outside of the range untouched.
So, to use an axample:
If I have these codes in a document:
R001
R002
R003
R050
R066
R099
And my goal is to bump by one all codes higher than R025 by, say, 1 my
end result after running the macro would be:
R001
R002
R003
R051
R067
R100
This is for a numismatic project containing lists of these codes often
running into the thousands which currently has to be done manually.
I'm using Word 2003. I'll be happy to send an ancient coin to anyone
kind enough to write me such a code!
Ras
rasiel@ dirty old coins.com