Skip to content
Back to skills

Excel To Word Vba Data Transfer

ASecurity

Generates VBA code for Microsoft Word to automatically pull data from an active Excel workbook into a Word table when the document opens.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentsgo

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill excel-to-word-vba-data-transfer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Excel To Word Vba Data Transfer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Excel To Word Vba Data Transfer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-excel-to-word-vba-data-transfer/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-excel-to-word-vba-data-transfer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.