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.4.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.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vba_sync-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 e9b957cead034daadf3f5af87ba13c48512a61934adb9b9914bd8d2adc2bca67
MD5 a2b36637e9239602c8784ea5120055f9
BLAKE2b-256 c44cdf3d14be9d712cd5816dc14f10e2fe4e826f08513118f83388647b41e673

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vba_sync-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 853951129915900e9da51e1ced251b70fcd06b4642db4c99838d601fe6d5d76e
MD5 1e4c7eefc6b247e1314ec4f266468cca
BLAKE2b-256 41205a25390af028b4bdf6200f848c3a1c5cf576b800b6207c31e3cdbbd92bb0

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