Skip to main content

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

Project description

access-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 ACCESS. Git-friendly. No more VBA editor pain.

CI PyPI - Version PyPI - Python Version Platform Downloads License

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

access-vba downloads

Quick Start

RECOMMENDED: Via uvx

uvx access-vba edit -f myfile.accdb --vba-directory .\src\VBA

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

30-Second Demo

# Start editing (uses active Access database)
uvx access-vba edit

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

How It Works

                        <--- vba-edit --->

    MS ACCESS                COMMANDS              Your favourite
                                v                       Editor

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

Install

pip install access-vba

Note: Installing access-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 access-vba <command> (installed) and uvx access-vba <command> (no install required).

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

💡 Complete Option Matrix: available here

Note: Access VBA support covers standard modules and class modules only. UserForms are not supported.

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

access_vba-0.5.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

access_vba-0.5.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file access_vba-0.5.0.tar.gz.

File metadata

  • Download URL: access_vba-0.5.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for access_vba-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a8ef2871ff7adedc289d43df45392db5162bc0e22944dd1143f9251e1be488c4
MD5 8acc3b00dddfc6203cfe510062bab3b5
BLAKE2b-256 51c0fc6e94e91d8df005d3f5848bb036ffb598412421315def0dae6486eb0a9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for access_vba-0.5.0.tar.gz:

Publisher: publish.yaml on markuskiller/vba-edit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file access_vba-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: access_vba-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for access_vba-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 289f44784289aa191d9d6a6cec276fdfd99e23acc0c65b37b834b49224b5fed1
MD5 2ffd73c773bb94ec8b3282031ea81969
BLAKE2b-256 20e37ee7cdf014fe598c9482b3ceae31e15104d4b3d3cbe64da2573fa20392e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for access_vba-0.5.0-py3-none-any.whl:

Publisher: publish.yaml on markuskiller/vba-edit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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