The Excel Automation Reference is a specialized corpus designed for AI agents to understand the actual behavior of Microsoft Excel (including COM behavior, Power Query, and DAX) rather than just its theoretical documentation. It is used to guide agent skills and MCP prompts to ensure reliable automation.
To effectively use this project for automation, you should consult the following categories of reference material:
Agent Workflow & Safety
- Key Constraints & Sequencing: Understand the required order of operations (e.g., what must happen before a specific task can be performed).
- Behavioral Rules: Learn about verification steps and safety protocols for destructive operations.
- Anti-Patterns to Avoid: Identify common automation mistakes and the recommended correct approaches.
- Gotchas & Known Limits: Understand surprising Excel behaviors and available workarounds.
- Agent Mode in Excel: Guidance on observing an agent driving the visible Excel window.
Workbook & Data Structure
- Workbook & Worksheet Operations: Managing the lifecycle of workbooks, sheets, and window management.
- Ranges & Formatting: Handling cell ranges, number formats, and visual styling.
- Excel Tables: Working with structured Excel Tables.
Data Modeling & Advanced Analysis
- Power Query & M Code: Automating data ingestion using Power Query and the M language syntax.
- Data Model & DAX: Interacting with the Excel Data Model and writing DAX queries.
- PivotTables & QueryTables: Managing and automating pivot and query tables.
- Analysis Tools: Using What-If Analysis and XML Maps.
Visuals & Reporting
- Charts & Drawing Objects: Automating the creation of charts and other drawing objects.
- Conditional Formatting & Slicers: Managing dynamic visual rules and slicer controls.
- Dashboards & Screenshots: Building reports and using screenshots for visual verification of automation results.