A
Alex Wenzel
Hi,
this is not strictly a VBA question (rather about the advanced find/
replace feature), but close:
I'm trying to find out how to find certain numbers inside specific
text strings, modify the text string and replace each number with n-1
(i.e. make >abc=1< to #xyz=0#, >abc=2< to #xyz=1# etc.).
I know how to modify the text string while *preserving* the numbers,
but have no idea how to calculate the n-1 number in the replacement
string.
So I would search for something like \>abc\=([0-9]{1,})\<
and replace it with .... what?
Is there a way to do this w/ find/replace or do I need a full VBA
macro?
Any ideas?
TIA
this is not strictly a VBA question (rather about the advanced find/
replace feature), but close:
I'm trying to find out how to find certain numbers inside specific
text strings, modify the text string and replace each number with n-1
(i.e. make >abc=1< to #xyz=0#, >abc=2< to #xyz=1# etc.).
I know how to modify the text string while *preserving* the numbers,
but have no idea how to calculate the n-1 number in the replacement
string.
So I would search for something like \>abc\=([0-9]{1,})\<
and replace it with .... what?
Is there a way to do this w/ find/replace or do I need a full VBA
macro?
Any ideas?
TIA