Docs
RunMacro Documentation
Learn RunMacro from basics to advanced.
Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

Exit a sub-macro and jump to a parent label in RunMacro
What it does
The Goto Parent File command is for scripts that call a sub-macro. It exits the running sub-macro and jumps to a label in the parent macro. It enables flexible navigation across files.
When to use it
- From a sub-macro, return to a point in the parent macro.
- End a sub-macro early on a condition.
- Build multi-level scripts that reuse sub-files.
Configuration steps
- Make sure the parent file has a target Label.
- In the sub-macro, add a Flow › Goto Parent File command.
- Enter the parent-file target label name. Save.
Every option explained
Real example
Example: sub-macro reports an error to the parent
- Parent file has Label
handle_error. - In the sub-macro, on error, use Goto Parent File →
handle_error. - The flow exits the sub-macro and continues in the parent.
Tips & common mistakes
Only works when the sub-macro is called from a parent (via Insert .pmacro/.qmacro).
RunMacro