DocsFlowGoto Parent File

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

RunMacro Goto Parent File command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Goto Parent File command in RunMacro.
  1. Make sure the parent file has a target Label.
  2. In the sub-macro, add a Flow › Goto Parent File command.
  3. Enter the parent-file target label name. Save.

Options reference

Parent target label

The Label name in the parent macro to jump to after exiting the sub-macro.

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

  1. Parent file has Label handle_error.
  2. In the sub-macro, on error, use Goto Parent File → handle_error.
  3. 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

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.