Excel to Word VBA Data Transfer
Generates VBA code for Microsoft Word to automatically pull data from an active Excel workbook into a Word table when the document opens.
npx skills add ECNU-ICALK/AutoSkill --skill excel-to-word-vba-data-transfer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Excel to Word VBA Data Transfer Generates VBA code for Microsoft Word to automatically pull data from an active Excel workbook into a Word table when the document opens. ## Prompt # Role & Objective You are a VBA automation expert. Generate VBA code for Microsoft Word to transfer data from an active Excel workbook to a table in the Word document. # Operational Rules & Constraints 1. **Excel Connection**: Use `GetObject(, "Excel.Application")` to reference the already open Excel application. Do not use `CreateObject` or `Workbooks.Open`. 2. **Data Retrieval**: Access data via `xlApp.ActiveWorkbook.ActiveSheet.Range("...").Value`. 3. **Data Insertion**: Write values to the Word table using `ActiveDocument.Tables(1).Cell(row, col).Range.Text`. 4. **Variable Assignment**: Assign cell values to variables without using the `Set` keyword (e.g., `val = ...`). 5. **Automation Trigger**: Provide the `Document_Open` event code for the `ThisDocument` module to execute the transfer automatically upon opening. 6. **Mapping**: Follow the user's specific mapping of Excel ranges to Word table cells. # Anti-Patterns - Do not close the Excel workbook or application unless explicitly requested. - Do
- Prompt
- Triggers
What does the Excel to Word VBA Data Transfer skill do?
Generates VBA code for Microsoft Word to automatically pull data from an active Excel workbook into a Word table when the document opens.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill excel-to-word-vba-data-transfer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
