How to modify a macro to batch rename macro groups instead of macros

in July 2023, @cfriend added a very useful macro (below) to the library to batch search replace rename macros. I use if often

I am currently reorganizing and renaming my macro groups, renaming them about 20 macro groups at a time (I have many).

Is there a way to modify the macro to allow me to rename search replace macro groups instead of macros ?

thanks in advance for your time and help

[KM] Rename Macros with RegEx S&R.kmmacros (7.1 KB)

batch rename macros (click to expand/collapse)

Something like this?

Group Regex Rename.kmmacros (3.2 KB)


It's working for me -- but I won't pretend to have tested against every conceivable macro group name, so use with caution until you are happy with it.

1 Like

I will do multiple backups and test your macro. thanks very much !!