Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
rukkha1024 avatar

Excel Vba Modifier

  • 33 installs
  • Updated March 16, 2026
  • rukkha1024/elderly-balance-assessment

Excel VBA Modifier is an agent skill that safely reads, writes, and runs Excel VBA modules on Windows using xlwings with Trust Center and backup gates.

About

Excel VBA Modifier is an agent skill for solo builders who maintain mission-critical Excel macros—assessment forms, ops dashboards, or research workbooks—and need programmatic edits without corrupting modules. It wraps xlwings to read VBA modules, replace code from .vba files, and execute test macros after Trust Center verification. The workflow enforces safety: confirm Excel trusts programmatic access, ensure the workbook is not open elsewhere, backup via excel-backup-manager, then write and run a validation macro such as BuildMetaSummary. It targets Windows hosts with a conda excel environment, matching clinical or operations teams that still ship logic inside .xlsm assets. Use it in Build when you extend or refactor VBA as part of a larger Python-assisted pipeline (for example elderly balance assessment spreadsheets). It is not a cross-platform Excel.js replacement; skip it if you only need CSV exports or Google Sheets.

  • Trust Center validation before any VBA read or write via trust_center_checker
  • Read, write, and run_macro flows backed by vba_modifier.py and modify_vba.py CLI
  • Mandatory backup discipline with excel-backup-manager before writes
  • Windows-only xlwings COM requirement with closed-workbook safety rules
  • Conda-run CLI verbs: check-trust, read, write, run for agent-driven pipelines

Excel Vba Modifier by the numbers

  • 33 all-time installs (skills.sh)
  • Ranked #403 of 688 Office & Documents skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/rukkha1024/elderly-balance-assessment --skill excel-vba-modifier

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs33
Security audit2 / 3 scanners passed
Last updatedMarch 16, 2026
Repositoryrukkha1024/elderly-balance-assessment

What it does

Safely read, replace, and test VBA in Excel workbooks using xlwings with Trust Center checks and mandatory backups on Windows.

Who is it for?

Windows-based developers automating legacy Excel workbooks with Python and conda-managed xlwings.

Skip if: macOS/Linux-only workflows, greenfield web apps that should replace Excel, or edits without backup and Trust Center approval.

When should I use this skill?

You need to read, update, or test VBA in an Excel .xlsm on Windows with xlwings after Trust Center validation.

What you get

You get verified read/write macro cycles with backup-first discipline and a test macro run to confirm the module still executes.

  • Updated VBA module content in target .xlsm
  • Macro execution verification output

By the numbers

  • Five core safety rules including backup-first and Windows-only COM
  • CLI exposes check-trust, read, write, and run operations

Files

SKILL.mdMarkdownGitHub ↗

Excel VBA Modifier Skill

Safe VBA code modification with xlwings

Overview

Automates VBA code modifications while ensuring safety:

  • Verify Trust Center allows programmatic VBA access
  • Read VBA module code from .xlsm files
  • Write/modify VBA module code safely
  • Run test macros to validate changes
  • Automatic backup before modifications

When to Use

  • Modifying VBA code: Safe xlwings-based editing
  • Testing macro changes: Run macros to validate
  • Debugging VBA: Read module code without manual editing
  • Batch updates: Apply changes to multiple macros
  • Following safety rules: Automatic backup and validation

Usage

# Check Trust Center permissions
conda run -n excel python script/modify_vba.py check-trust perturb_inform.xlsm

# Read a VBA module
conda run -n excel python script/modify_vba.py read perturb_inform.xlsm Module2

# Write/modify a VBA module (from file)
conda run -n excel python script/modify_vba.py write perturb_inform.xlsm Module2 new_code.vba

# Run a macro to test
conda run -n excel python script/modify_vba.py run perturb_inform.xlsm BuildMetaSummary

Features

Trust Center Checking

conda run -n excel python script/modify_vba.py check-trust file.xlsm

Output:

✓ Trust Center check passed
✓ VBA project access allowed

Reading VBA Code

conda run -n excel python script/modify_vba.py read file.xlsm Module2

Outputs module code to console (can redirect to file).

Writing VBA Code

# Write from file
conda run -n excel python script/modify_vba.py write file.xlsm Module2 new_code.vba

# Automatically creates backup first
# Then replaces module with new code

Running Macros

# Test macro after modification
conda run -n excel python script/modify_vba.py run file.xlsm BuildMetaSummary

# With arguments (if applicable)
conda run -n excel python script/modify_vba.py run file.xlsm Sub1 arg1 arg2

Safety Features

✓ Automatic backup before modifications ✓ Trust Center validation ✓ Test macro execution ✓ Error handling and rollback ✓ Windows only (COM access)

Integration with Other Skills

  • excel-backup-manager: Auto-backup before writes
  • excel-inspector: Understand VBA structure
  • excel-na-utils: Helper functions for VBA code

Requirements

  • OS: Windows only (xlwings COM access)
  • Package: xlwings
  • Trust Center: Must allow programmatic VBA access
  • Excel: Installed and configured

Error Handling

ErrorSolution
Trust Center blockedEnable in Excel: File > Options > Trust Center
Module not foundUse excel-inspector to list modules
Write failedCheck file isn't open in Excel
Macro failedCheck syntax in new VBA code

Workflow

User request
    ↓
Check Trust Center
    ↓
Create backup (via excel-backup-manager)
    ↓
Read current module
    ↓
Write new module
    ↓
Run test macro
    ↓
Report success/failure

Files

  • vba_modifier.py: Core VBA modification logic
  • trust_center_checker.py: Trust Center validation
  • CLI: script/modify_vba.py

Related skills

How it compares

Office integration skill with enforced backup—not ad-hoc copy-paste of VBA in chat.

FAQ

Who is excel-vba-modifier for?

Developers and analysts who own.xlsm tools on Windows and want agents to apply vetted VBA patches through xlwings and a CLI.

When should I use excel-vba-modifier?

During Build integrations work when you need to extract Module2, deploy new_code.vba, and run BuildMetaSummary after Trust Center check on a closed workbook.

Is excel-vba-modifier safe to install?

Review the Security Audits panel on this Prism page; the skill writes to workbooks and runs macros—only use on copies until backups pass and Trust Center is explicitly configured.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.