DocsFileData Source - Write Variables

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

RunMacro RunnerRunMacro 3.5+

The Data Source - Write Variables command writes variable values as a new row into a CSV, Excel, TXT (by template), or Google Sheet.

Dialog & quick setup

RunMacro Data Source - Write Variables command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Data Source - Write Variables command in RunMacro.
  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.

Options reference

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.

Modes & when to use

RunMacro Runner

Best for

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

Use an alternative when

  • Do not use it when variable names do not match target columns or strict type/schema conversion is required.
Before you run
  • Add Data Source - Write Variables to the macro.
  • Prepare the data or target that Data Source - Write Variables will use.

Example workflow

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.
Expected result: After execution, Data Source - Write Variables completes the described action and makes its result available to the next step.

Tips & limitations

Writing to Google Sheet lets you track results remotely; it needs an Apps Script Web App like the Google Sheets Action command.
  • Missing variables, renamed columns, and invalid text values can create blanks or wrong types.

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.