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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vba_sync-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 213c100cb640c73c2f05a5973faba1664d0eceaa54fc8e41024613cc75dbdb6a
MD5 64eb068b14b81edd119ed17c572f0aed
BLAKE2b-256 d1548b2c22d6b376ec9c2cb88094ba6dfedc5ad169bc014094c81dea742f7c6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vba_sync-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3141a72d338455f6c1f2a2a6c4018df195e7b312be5d2b7759df4598a79ff0ec
MD5 b48744efb587a0d529fd0afaa62a73fd
BLAKE2b-256 59837aa04574789d77a8fc697647cba089bd75c7acda850d8aac2f08b09eba1f

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