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 Variables Declare Variable
📦 Variables

Declare a variable (Global/Dynamic) in RunMacro

What it does

The Declare Variable command creates a named variable to store reusable data. Pick Global (kept for the session) or Dynamic (temporary, frequently changing), with an initial value.

When to use it

  • Store a value for use in later steps (e.g. email, name).
  • Prepare a variable before assigning data from a file/clipboard.
  • Separate dynamic data from fixed content.

Configuration steps

  1. Add a Variables › Declare Variable command.
  2. Set the variable name (e.g. email).
  3. Choose the type: Global or Dynamic.
  4. (Optional) enter an initial value. Save. Reference it as {email}.

Every option explained

Variable name

The identifier used as {var_name} in text fields.

Type (Global / Dynamic)

Global keeps its value across the run; Dynamic is temporary data that changes often (e.g. per loop).

Initial value

The value set at declaration time. May contain other variables.

Real example

Example: declare a counter variable

  1. Declare Variable count, Global, value 0.
  2. In a loop, use Calculate to increment count.
  3. Reference {count} where needed.

Tips & common mistakes

Use Dynamic for per-loop data (email, password); Global for fixed config.
RunMacro robot

Ready to automate smarter?

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