Skip to main content

Edit, export and import Excel VBA code from the command line. Thin entry-point wrapper for vba-edit.

Project description

excel-vba belongs to vba-edit CLI Tools

Edit VBA code in VS Code, PyCharm, Wing IDE, or any editor you love. Real-time sync with MS EXCEL. Git-friendly. No more VBA editor pain.

CI PyPI - Version PyPI - Python Version Platform vba-edit - Downloads excel-vba - Downloads License

This is a thin entry-point package for vba-edit. Installing excel-vba gives you the excel-vba command and automatically installs the vba-edit core package.

Quick Start

RECOMMENDED: Via uvx

uvx excel-vba edit -f myfile.xlsm --vba-directory .\src\VBA

Note: The uvx command invokes a tool without installing it — same as: uv tool run excel-vba

30-Second Demo

# Start editing (uses active Excel workbook)
uvx excel-vba edit

# That's it! Edit the .bas/.cls files in your editor. Save = Sync.

How It Works

                        <--- vba-edit --->

   MS EXCEL                  COMMANDS              Your favourite
                                v                       Editor

+------------------+                            +------------------+
|                  |                            |                  |
|   VBA Project    |   <---   EDIT*   (once ->) |  (e.g. VS CODE)  | 
|                  |                            |                  |     latest
|  (Office VBA-    |          EXPORT      --->  |   .bas           |  <- AI coding-  
|    Editor)       |                            |   .cls           |     assistants
|                  |   <---   IMPORT            |   .frm           |   
|                  |                            |  (.frx binary)   | 
|                  |                            |                  | 
+------------------+                            +------------------+
                                                         v
                                                +------------------+
                                                |                  |
 * watches & syncs                              |    (e.g. Git)    |
   back to Office                               |  version control |
   VBA-Editor live                              |                  |
   on save [CTRL+S]                             |                  |
                                                +------------------+

Install

pip install excel-vba

Note: Installing excel-vba also installs the vba-edit core package, which provides entry points for all supported Office apps (excel-vba, word-vba, powerpoint-vba, access-vba).

Usage

All commands below work with both excel-vba <command> (installed) and uvx excel-vba <command> (no install required).

Command What it does
excel-vba edit Start live editing
excel-vba export One-time export
excel-vba import One-time import
excel-vba export --open-folder --keep-open Export and open folder in explorer, keep document open for inspection
excel-vba export --force-overwrite Export without confirmation prompts
excel-vba check Verify status of Trust access to the VBA project object model

💡 Complete Option Matrix: available here

For full documentation see github.com/markuskiller/vba-edit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excel_vba-0.4.4.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

excel_vba-0.4.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file excel_vba-0.4.4.tar.gz.

File metadata

  • Download URL: excel_vba-0.4.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for excel_vba-0.4.4.tar.gz
Algorithm Hash digest
SHA256 120960b61c7fac7d5642956100f4f7c400e33e17e1167fa8d603192e7ba2e8f5
MD5 30f24028fd7b26c695eede69caea1f0d
BLAKE2b-256 f56e594ce16e850e1aed0130bef011ea874cc70ba69c30101840e2a79693a1a3

See more details on using hashes here.

File details

Details for the file excel_vba-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: excel_vba-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for excel_vba-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8961928450659f5dfde060fd2bcaaa1efd186cf7b3f253c331a8c88b9163f0e7
MD5 713662e18621912510060d7889c7bbfb
BLAKE2b-256 b665522c2c0abd9ebcda6992d2329c6438a053e2a1efbe4590663ab5f1818639

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page