I have a large number of Excel Templates that contain VBA code that need to be updated. The Find method of the code-module object only returns true/false, not the location of the found string.
Is there any way to automate the find-and-replace procedure?
Add this code to a new macro-enabled workbook. Set the
FIND_WHAT
andREPLACE_WITH
constants, open the other workbooks and run the code.The original code comes from Charles Pearson's site
WARNING: Only basic testing has been done!