1. Home
  2. Blog
  3. Fill web forms from Excel with macros

Fill web forms from a spreadsheet with a macro: record once, run for every row

Typing the same web form hundreds of times from a spreadsheet is slow and easy to get wrong. The web macros in Ladilala let you do the task once in the browser and then repeat it for each row of data. This post covers how it works, a worked example and the limits.

How a web macro works

You open a browser inside Ladilala and do the task as usual: open the page, fill the fields, pick options, press submit. Ladilala records each step. Then you link the input fields to columns in your data file, and Ladilala replays the steps for every row, swapping in the values from the columns.

The Ladilala Macros screen: the steps of a form-filling macro, with values taken from data columns.
A sample macro: steps that open a page, fill fields and click, with values taken from data columns.

The data sources it reads

According to the project docs, Ladilala reads data from four kinds of source:

Data sources and what to know
SourceNotes
CSVDetects the encoding (including Vietnamese Windows-1258) and the delimiter.
Excel (xlsx)Pick the sheet; row 1 is the header; date cells are read in the standard date form that web date fields expect.
JSONAn array of objects; it is held in memory, so there is a size limit.
RESTRead-only (GET), with token login and paging.

Google Sheets is not supported yet. Export to CSV or Excel and load that.

Example: entering orders from a spreadsheet into a website

Say you have an Excel file of 200 rows with customer name, phone, product and quantity, to be entered into a partner's order page. The steps:

The Ladilala Runs screen: a ledger of each data row with its state.
A sample run: each data row has its own state, and results can be exported to CSV.
  1. Tidy the file: clear column names in row 1, one order per row. Keep phone numbers as text so the leading zero survives.
  2. Load the file in Ladilala and pick the sheet.
  3. Start recording, open the order page and enter one sample order like a person would.
  4. Link each field you filled to its column: the name field to the customer name column, the quantity field to the quantity column.
  5. Run a single row (the "test one" option) and check the result on the site.
  6. Run the whole sheet. A row that fails is marked for review and does not ruin the whole run.

Safety layers for bulk runs

The project docs describe checks so that a bad run does little harm:

  • A dry run skips steps that cannot be undone, such as submit; "test one" runs only the first row.
  • Each macro declares the allowed origins; it may not leave that list.
  • You can set a delay between rows and stop after a number of errors.
  • Each row records a state: done, failed, skipped, or "uncertain" when it passed the submit step but did not end cleanly. Uncertain rows are not retried automatically, to avoid duplicate submissions.
  • When a step needs a person (for example a login or a check), the run pauses and waits for you.

Limits to know

A macro does not replace everything:

  • If the website changes its layout, the macro may break and need re-recording.
  • Ladilala does not solve CAPTCHAs; if one appears, a person must handle it.
  • Many sites forbid automation in their terms. Use it only on sites and accounts you have the right to use, and you are responsible for those terms.
  • Windows 10 is not tested, and Google Sheets is not supported.

Work that needs judgement, like reading an invoice and deciding what to enter, is not a macro job. For that, see AI automation.

When to build a system instead of a macro

A macro fits when you must enter data into someone else's page and there is no direct connection. If the data is your own and scattered across files, gather it in one system instead of copying it around: see from Excel to management software. If several accounts will run one macro, also read about separate browser profiles.

Frequently asked questions

Do I need to code to record a macro?
No. You do the task in the browser as usual and Ladilala records it.
What kinds of data can Ladilala read?
Excel, CSV, JSON and REST. Not Google Sheets yet.
What happens if a row fails midway?
That row is marked for review. A row that passed the submit step with an unclear result is marked "uncertain" and is not retried automatically.
Does it work on every website?
No guarantee. A layout change can break a macro, and many sites forbid automation in their terms. Check the site's terms yourself.

Try web macros

Download Ladilala from GitHub. Is your repeated work more than a macro can handle? Contact 71.zone to talk it through.

Contact us

Calling or messaging is fastest. Or pick an open time and we call you then.

Phone and WhatsApp0949 462 207

We reply within 1 working day.

Call now WhatsApp