When should you use it?
- The same Excel steps repeat every month
- Reconciliations pull from downloaded query files
- You can describe the steps but can't code
Not for: Companies whose IT controls forbid unapproved macros; Posting journal entries without review
What do you need, and what do you get?
You need
- A plain-English description of the steps
- Header names in your files
- File naming pattern
You get
- A VBA macro with comments and error messages
- Test instructions
How does it work, step by step?
- Describe one taskOne repeatable step at a time, with the exact header names.
- Ask for dynamic lookupsFind columns by header text, never by fixed letters or rows.
- Test on a copyRun it on last month's files and compare to the finished rec.
- Keep it documentedStore the macro with a short note on what it does and who owns it.
The prompt
Our own prompt, inspired by u/Broseidon132 on r/Accounting and written to work in ChatGPT, Claude, Gemini and others. Values in lime are placeholders.
Fill in the blanks (optional; the copied prompt uses your values)
Write an Excel VBA macro for this task: {task_description}. Files: the workbook it runs in is {target_workbook}; source files are in {folder} and their names start with {file_prefix}. Rules: - Find columns by header text (e.g. {header_names}), never by fixed letters or row numbers. - Open the newest matching source file hidden, copy only what's needed, close it. - Before changing anything, show a message naming the file it will use and the row count, and let me cancel. - If something is missing, stop with a plain message saying what and where. - Add comments explaining each block, and a DRY_RUN switch that reports without writing. Then give me 3 test steps to run on a copy.
Inspired by u/Broseidon132 on r/Accounting: How I use AI as a staff accountant. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Public companies and firms with strict IT controls may need approval before running macros; commenters raised this first.
- A macro that silently picks the wrong file is worse than none; have it show which file it opened.
Our take
This is one of the most practical AI posts we found from a working accountant, because it uses AI to write deterministic code rather than to do the work directly. That makes the output reviewable and repeatable, which matters in finance. The two habits worth copying are finding columns by header name so a shifted column doesn't break the macro, and having the macro report clearly why it stopped. The top reply is the caution we'd repeat: if you work at a public company or under strict IT general controls, get approval before automating a reconciliation, and keep the macro under change control. Our prompt bakes in dynamic lookups, a visible log of which files were opened, and a dry-run mode. In our test with a sample bank reconciliation and a query download whose columns had moved, the macro it wrote found the Amount column by header, appended the rows, refreshed the pivot and stopped cleanly when the download file was missing.
Where the time goes back: Steps that took the same manual effort every close run in seconds, and ten similar journals take about as long as one.
FAQ
Why macros instead of letting AI do the work in the sheet?
I can't code. Is this realistic?
Source and credit
Inspired by u/Broseidon132 on r/Accounting. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- How I use AI as a staff accountant
- Creator
- u/Broseidon132 on r/Accounting
- Published on
- Original date
- Jul 19, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- ChatGPT
- AI dry run
- Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Dynamic header lookup, visible file confirmation, clean stop on missing input.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.