TheCobbler
New Member
- Joined
- Aug 21, 2021
- Messages
- 49
- Office Version
- 365
- Platform
- Windows
Hi there,
I’m looking to do a large amount of find and replace on some data in two columns. (B:C)
I’ve been trying to do this in an efficient way, as I can tell the macro recorder doesn’t make this easy to read and becomes a bit convoluted if I do a basic find and replace on a selection.
How would you do this? I’ve been looking at loops and also arrays but am having a difficult time understanding which is best. (I’m relatively new to this!) I’d also like to store all the replacement values within the VBA code.
For example in column C, change “CRL48” to “Royal Mail”. This sort of change for around 15 examples. Once working this is something I’d like to apply to other sheets that may have up to 50 changes.
Thanks for reading, any help or advice greatly appreciated.
Cobb
I’m looking to do a large amount of find and replace on some data in two columns. (B:C)
I’ve been trying to do this in an efficient way, as I can tell the macro recorder doesn’t make this easy to read and becomes a bit convoluted if I do a basic find and replace on a selection.
How would you do this? I’ve been looking at loops and also arrays but am having a difficult time understanding which is best. (I’m relatively new to this!) I’d also like to store all the replacement values within the VBA code.
For example in column C, change “CRL48” to “Royal Mail”. This sort of change for around 15 examples. Once working this is something I’d like to apply to other sheets that may have up to 50 changes.
Thanks for reading, any help or advice greatly appreciated.
Cobb