Excel Automation Guides¶
Task-focused walkthroughs for the things people most often want an AI assistant to do in Excel. Each guide shows what to ask for, the equivalent CLI commands, how to verify the result, and the gotchas that bite people.
For the exhaustive operation reference, see the feature documentation.
Automating data¶
- Refresh Power Query from an AI assistant — refresh one query or all of them, test M code before committing it, and choose where the data lands.
- Query the Excel Data Model with DAX — create measures, run DAX queries, inspect the model with DMVs, and manage relationships.
Building reports¶
- Build and update PivotTables with an AI assistant — choose the right source, configure fields, chart the result, and keep everything refreshed.
Working with existing workbooks¶
- Run VBA macros from an AI agent — enable VBA trust, inspect modules, execute macros, and import new code.
Choosing an approach¶
- Real Excel automation vs. file-parser libraries — what COM automation can do that
openpyxl,ExcelJS, andEPPluscannot, and when a file parser is the better choice.