M
mfaerber
Hi all,
I have Excel spreadsheets where some cells contain a specific code
(string of data), and I want to simply go through the entire sheet
looking for those code/strings, and replace them with new values that
are made up of the original code plus other text. The codes follow a
pattern as such: One or Two uppercase letters + ten digits
For example: in a cell, find value of "AB1234567890", and replace it
with "value: AB1234567890 (old)". In some cases, certain uppercase
letters would mean a slightly-different output, but essentially
similar.
No other text would be changed as part of this macro, so it's really a
find & replace using regex/pattern to define the find.
I was hoping that I could do this in VBA as a macro, so that I could
trigger it by selecting a range (column) and running it.
Am new to VB and having some trouble figuring this code out, if anyone
can help it would be greatly appreciated!!
TIA -
I have Excel spreadsheets where some cells contain a specific code
(string of data), and I want to simply go through the entire sheet
looking for those code/strings, and replace them with new values that
are made up of the original code plus other text. The codes follow a
pattern as such: One or Two uppercase letters + ten digits
For example: in a cell, find value of "AB1234567890", and replace it
with "value: AB1234567890 (old)". In some cases, certain uppercase
letters would mean a slightly-different output, but essentially
similar.
No other text would be changed as part of this macro, so it's really a
find & replace using regex/pattern to define the find.
I was hoping that I could do this in VBA as a macro, so that I could
trigger it by selecting a range (column) and running it.
Am new to VB and having some trouble figuring this code out, if anyone
can help it would be greatly appreciated!!
TIA -