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 File Data Source - Write Variables
📝 File

Write variables to CSV/Excel/TXT/Google Sheet in RunMacro

What it does

The Data Source - Write Variables command writes variable values as a new row into a CSV, Excel, TXT (by template), or Google Sheet. Use it to save results after processing.

When to use it

  • Save results (created accounts, tokens...) to a file.
  • Export aggregated data to Excel/Google Sheet.
  • Log data per loop iteration.

Configuration steps

  1. Add a File › Data Source - Write Variables command.
  2. Choose the target format (CSV/Excel/TXT/Google Sheet) and the file/URL.
  3. Define the column = variable pairs (or a TXT template).
  4. Save.

Every option explained

Target format + File/URL + Sheet

Where to write: local CSV/Excel/TXT or Google Sheet via Apps Script.

Column = variable list

Each column maps to a value/variable; leaving the value empty uses {column name}.

TXT template

For TXT format: a template string with variables written per line.

Output folder + newline

The output folder and whether to add a trailing newline.

Real example

Example: save created accounts to CSV

  1. Write Variables, CSV target results.csv.
  2. Columns: email={email}, password={password}.
  3. Each run appends a result row.

Tips & common mistakes

Writing to Google Sheet lets you track results remotely; it needs an Apps Script Web App like the Google Sheets Action command.
RunMacro robot

Ready to automate smarter?

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