Globally Find and Replace Text in numerous files with the Batch Process Utility
Whether you need to update pieces of text or Tags, using the Batch Processor and the Find/Replace Text tool this can be accomplished. Also, be sure to note the initial Key In string that contains the word SILENT so that the OK Button does not force you to manually interact with each file being processed.
When creating the Command file use these lines:MDL SILENTLOAD FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXTFIND DIALOG SEARCHSTRING oldFIND DIALOG REPLACESTRING newCHANGE TEXT ALLFILTERED
Here is an example
Option Explicit Public Sub FindReplace(findStr, repStr) Dim tmpStr CadInputQueue.SendCommand "MDL SILENTLOAD FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXT" tmpStr = "FIND DIALOG SEARCHSTRING " + findStr + "; FIND DIALOG REPLACESTRING " + repStr CadInputQueue.SendKeyin tmpStr CadInputQueue.SendKeyin "CHANGE TEXT ALLFILTERED" End Sub Sub main() FindReplace "119.00m", "119.20m" End Sub
MVBA-FAQ