I'm working on a project that converts a large dump of raw data(10k rows) into usable information and eliminates about 50% of inputs. I am a novice when it comes to VBA, but I want my scripts to be flexible if I move around the columns or add more. I'm currently using the following to find which range/column should be adjusted, but I feel like it's redundant.
I have over 25 Subs that each do a different function such as correcting "Jr" to "Jr.", "iii" to "III", etc. Right now, I have basically the same first 11 lines in every single one of them. I then use one master macro that calls all of these to run in the correct order.
My question is, is there a way that I can make "r" be a global value that will move across the different subs, or do I need to Find then Set "r" in each and every one?
Would it be better if I created another function to do the finding and just called that?
If this is a stupid question, I'd appreciate if you could point me in the direction of a good resource to learn from. Most of my learning has been through trial and error thus far.
Thanks
Bookmarks