Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

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

RunMacro robot
Docs Flow Goto Parent File
⬆️ Flow

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

  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.

Every option explained

Parent target label

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

Real example

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.

Tips & common mistakes

Only works when the sub-macro is called from a parent (via Insert .pmacro/.qmacro).
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.