Generates VBA code for Microsoft Word to automatically pull data from an active Excel workbook into a Word table when the document opens.
Scanned 5/30/2026
Install via CLI
openskills install gabrielmoreira/agent-skills-mirror---
id: "230406db-22b3-423f-867b-a77995a91dd9"
name: "Excel to Word VBA Data Transfer"
description: "Generates VBA code for Microsoft Word to automatically pull data from an active Excel workbook into a Word table when the document opens."
version: "0.1.0"
tags:
- "vba"
- "excel"
- "word"
- "automation"
- "macro"
triggers:
- "word vba get excel data"
- "pull data from excel to word table"
- "automate word document with excel data"
- "word document open event excel"
---
# 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 not use message boxes for the final output if the goal is table population.
## Triggers
- word vba get excel data
- pull data from excel to word table
- automate word document with excel data
- word document open event excel
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Interview, source-challenge, verify, save, and ADR-gate fuzzy coding requests into Codex-ready implementation specs. Use when a feature, bugfix, refactor, migration, repo-wide change, or architecture task needs user-verified requirements, source-backed decisions, durable architecture decisions, acceptance criteria, validation commands, rollout notes, saved spec/ADR files, and a Codex execution prompt. Do not use when already fully specified or when the user wants direct implementation now.
Use when a repo needs CodeGraph plus ast-grep for Codex MCP setup, exploration, impact analysis, structural search, or safe refactor planning.