vbaExcel
Extraer y reimportar codigo VBA de archivos Excel .xlsm en Windows usando Python (pywin32/oletools) o VBScript. Usar para exportar modulos .bas, refactorizar en VS Code y volver a importar al XLSM.
How do I install this agent skill?
npx skills add https://github.com/lunasoft2001/github-copilot-excel-analyzer --skill vbaexcelIs this agent skill safe to install?
- Gen Agent Trust Hubwarn
This skill automates the extraction and re-importing of Excel VBA code. It requires disabling a standard Office security feature (AccessVBOM) that prevents scripts from modifying macros, which increases the attack surface for malicious Office documents. Additionally, it generates and executes temporary VBScripts at runtime to perform its tasks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
2/5 files flagged
What does this agent skill do?
vbaExcel
Uso rapido
- Extraer VBA a archivos .bas.
- Refactorizar los .bas.
- Reimportar al .xlsm.
Flujo recomendado
1) Exportar VBA
- Ejecuta el script de exportacion en
scripts/export_vba.py. - Si falla el acceso a VBA, habilita
AccessVBOMconscripts/enable_vba_access.reg.
2) Refactorizar
- Edita los archivos .bas en VS Code (o en el editor VBA).
3) Reimportar
- Ejecuta el script
scripts/import_vba.pypara reemplazar el codigo de cada modulo.
Notas importantes
- Excel debe estar instalado.
- Cierra Excel antes de exportar o importar.
- Siempre crea un backup del XLSM antes de importar.
Scripts incluidos
scripts/export_vba.py: exporta VBA a .bas usando VBScript y COM.scripts/import_vba.py: importa los .bas al XLSM via COM.scripts/enable_vba_access.reg: habilita acceso programatico a VBA.
Cuando usar este skill
- Quieres extraer VBA para refactorizar.
- Quieres automatizar el reingreso del codigo VBA al XLSM.
- Tienes bloqueado el acceso a VBProject y necesitas habilitarlo.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/lunasoft2001/github-copilot-excel-analyzer/vbaexcel">View vbaExcel on skillZs</a>