Skip to main content

Export and import VBA macros from Word (.docm .dotm) and Excel (.xlsm .xlam)

Project description

VBA-Sync

A command-line tool for exporting and importing VBA macros from Microsoft Word (.docm .dotm) and Excel (.xlsm .xlam) files.

This script allows you to:

  • Export all VBA modules from a document into a folder.
  • Import previously exported modules back into the document.

Create a backup copy of the document before importing macros.

Installation

pip install vba-sync

Requirements

Python >= 3.7

Microsoft Word or Excel installed

Trust access to the VBA project object model enabled in Office settings

Usage

Export macros

vba-sync export your_file.docm

Import macros

vba-sync import your_file.docm

License

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

vba_sync-0.1.5.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

vba_sync-0.1.5-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file vba_sync-0.1.5.tar.gz.

File metadata

  • Download URL: vba_sync-0.1.5.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for vba_sync-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7f2fe000553c756a355c630d7deed346eab62802378bdfb3f476eda71167b942
MD5 a82b8887c64957cf47cd76142ed30976
BLAKE2b-256 6c648afbb6792847004d3a0b54264f6e135a52a11656700aa86aabfd67221e95

See more details on using hashes here.

File details

Details for the file vba_sync-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: vba_sync-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for vba_sync-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7b08baa73a43576b39787602ad08eeb0b017fe66e34b67067cea6cee3e2abc8f
MD5 d037f0fc4ca189c492d5f969c293b870
BLAKE2b-256 f8582471372eae74657032a3619e618e8196b702574428a0eca8ff5ae85e2205

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