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.2.tar.gz (4.9 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.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vba_sync-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 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.2.tar.gz
Algorithm Hash digest
SHA256 b81edcbfb24420b829f93485df11d45ed7968b2ba3e0ebc50e71ce8621ec6499
MD5 71fef8ca745dc3c1affe7d9e44516b8c
BLAKE2b-256 845a8fa5b762b523098f9fa09d8b2c67fea855f118ce9f75a17765e0f41dde81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vba_sync-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c735e7ca0336ea58918079ed83ef15cce978c31acc1e4538e7c2bee3bf76bf3c
MD5 76e7bb7c44eb3fb15083c181b74b79d9
BLAKE2b-256 0d393c3257a266284b802e7ccd4f23b00e9b0757984d01532ee27232a7b39627

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