Local Excel Files

Ghost RPA can read and write directly to .xlsx files on your machine. No Google account, no cloud setup — just create a spreadsheet, point your script to it, and run.

Same data tokens, no cloud. Local Excel uses the exact same column layout and data tokens ({{EMAIL}}, {{PHONE}}, etc.) as Google Sheets — the only difference is where the file lives.

Step 1 — Create the Excel File

Open Microsoft Excel (or any spreadsheet app that saves .xlsx) and create a new workbook.

  1. Name the first sheet tab Sheet1 (exact spelling, case-sensitive).
  2. Set up the header row in Row 1. The first three columns are reserved by the engine:
ColumnHeaderPurposeWho writes
ASTATUSRun result — "success", "failure", or custom statusEngine
BRUNNER_IDWhich runner processed this rowEngine
CUsedTsTimestamp when the row was usedEngine
D+Your headersData columns — FIRST_NAME, LAST_NAME, EMAIL, PHONE, ADDRESS, etc.You
  1. Fill in your data starting from Row 2. Leave columns A, B, and C empty — the engine fills those during the run.
  2. Save the file anywhere on your machine (e.g. C:\Users\YourName\Documents\leads.xlsx).
Excel spreadsheet with STATUS, RUNNER_ID, UsedTs, USED_URL, FIRST_NAME, LAST_NAME, EMAIL, PHONE, ADDRESS, CITY, STATE, ZIP columns

Step 2 — Copy the File Path

You need the full path to your .xlsx file for the script.

  1. Open File Explorer and navigate to your Excel file.
  2. Hold Shift and right-click the file, then select Copy as path. This copies the full path with quotes.
  3. Or click the address bar in File Explorer and copy the folder path, then append \yourfile.xlsx.
Tip: Keep the file in a stable location (like Documents). If you move or rename the file later, update the path in your script.

Step 3 — Add to Your Script

In your script JSON file, set the sheet type to excel and provide the file path:

JSON
{
  "sheet": {
    "type": "excel"
  },
  "sources": {
    "excel_path": "C:\\Users\\YourName\\Documents\\leads.xlsx"
  }
}
Close Excel before running. The engine needs write access to the file. If Excel has it open, the engine may not be able to save results back.

That's it — no OAuth, no API keys, no sharing. Just a local file path and you're ready to run.

How It Works at Runtime

When a run starts, the engine:

  1. Opens the .xlsx file and reads all rows from Sheet1.
  2. Picks rows where the STATUS column is empty (not yet processed).
  3. For each profile, assigns a row and writes RUNNER_ID and UsedTs to claim it.
  4. Runs the script actions — data tokens like {{EMAIL}}, {{PHONE}} etc. pull values from that row's columns.
  5. After completing (or failing), writes the final STATUS back to the row and saves the file.

Troubleshooting

File not found

Error: ENOENT: no such file or directory

Fix: Double-check the file path in your script. Make sure backslashes are escaped (\\) in JSON. The file must exist before the run starts.

File is locked / cannot write

Error: EBUSY: resource busy or locked

Fix: Close Excel (or any other app that has the file open) before starting the run.

Sheet1 tab not found

Fix: Rename the first tab to exactly Sheet1 (case-sensitive). Some Excel versions default to locale-specific names.