DocsFlowInsert .pmacro

Insert and run a .pmacro sub-macro in RunMacro

RunMacro RunnerRunMacro 3.5+

The Insert .pmacro command calls and runs another macro file as a sub-macro, right at its position.

Dialog & quick setup

RunMacro Insert .pmacro command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Insert .pmacro command in RunMacro.
  1. Add a Flow › Insert .pmacro command.
  2. Choose the path to the .pmacro file to run.
  3. Save. On reaching it, the whole sub-macro runs before continuing.

Options reference

File path (.pmacro)

The sub-macro file to load and run. A missing file reports an error (it does not silently continue).

Modes & when to use

RunMacro Runner

Best for

  • Reuse a common script part (e.g. login) in many places.
  • Split a large workflow into manageable files.
  • Build a library of reusable sub-macros.

Use an alternative when

  • Do not insert a PMacro when a portable standalone package is required or when the call chain can become recursive.
Before you run
  • Add Insert .pmacro to the macro.
  • Prepare the data or target that Insert .pmacro will use.

Example workflow

Example: reuse a login macro

  1. Create login.pmacro with the login steps.
  2. In the main workflow, Insert .pmacro pointing to it.
  3. Whenever login is needed, just insert this file.
Expected result: After execution, Insert .pmacro completes the described action and makes its result available to the next step.

Tips & limitations

RunMacro blocks circular recursion (A calls B, B calls A) to avoid hangs — but avoid designing it that way.
Pair with Goto Parent File so a sub-macro can navigate back to the parent.
  • The external PMacro must exist and may depend on local paths, variables, profiles, or assets; recursive call cycles are blocked.

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.