With the help of a second macro, which executes your macro on all open files. Here is this macro code:
PlayMacro 1 "case-sensitive name of your macro"
Find MatchCase "
Remove the SaveAll
command if you do not want to save all files after macro execution or you already save it during execution. Make sure, that your macro does not close the file at end of execution or you have to modify this macro.
The macro command UnixReOff
since UltraEdit for Windows v220.127.116.116 and UEStudio v9.00. Loop
is in newer versions of UltraEdit/UEStudio Loop 0
for a loop with indefinite number of loop iterations.
Here is an alternate solution which can be used if
- all opened files should be modified by 1 or more macros, and
- each file should be saved and closed after called macro(s) finished, and
- there are surely no unsaved and therefore unnamed new files opened on start of macro execution.
PlayMacro 1 "case-sensitive name of first macro"
PlayMacro 3 "case-sensitive name of second macro"
This simple macro runs the first specified macro once and second specified macro three times on each opened file. The loop exits if there is no file opened anymore (or the active file is a new file with no file name).
All macros must be stored in same macro file. The commands Macro - Load and Append to Existing
and Macro - Save All
can be used to copy macros from several macro files into one macro file.