How to automate find/replace code in VBA modules in MS Office 2013?
问题 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? 回答1: Add this code to a new macro-enabled workbook. Set the FIND_WHAT and REPLACE_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! Option