Hi, @adamg. I've shared a macro that does just that: Edit a Recently Executed Macro
For more information, see the wiki Searching the Forum for Answers section.