Exit a sub-macro and jump to a parent label in RunMacro
RunMacro RunnerRunMacro 3.5+
The Goto Parent File command is for scripts that call a sub-macro.
Dialog & quick setup

- 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.
Options reference
Modes & when to use
RunMacro Runner
Best for
- 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.
Use an alternative when
- Do not use it outside a child macro or when a normal return to the caller is sufficient.
Before you run
- Add Goto Parent File to the macro.
- Prepare the data or target that Goto Parent File will use.
Example workflow
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.
Expected result: After execution, Goto Parent File completes the described action and makes its result available to the next step.
Tips & limitations
Only works when the sub-macro is called from a parent (via Insert .pmacro/.qmacro).
- The command requires a parent frame and an existing parent label; it couples the child to the caller label names and structure.
Applies to RunMacro 3.5+ · RunMacro Runner · Windows 10/11
