Skip to main content

Create a vbaProject.bin file from VBA source files.

Project description

Coverage Status

vbaProject-Compiler

Create a vbaProject.bin file from VBA source files.

Command Line Interface

Eventually it will be possible to use the CLI to create a vbaProject.bin file from source files and an optional configuration file.

VBAProject Class

The vbaProject class contains all the data and metadata that is used to create the OLE container. It can use this data to create several files, then compress and combine them into an OLE container

from ms_ovba.vbaProject import VbaProject
from ms_cfb.ole_file import OleFile


project = VbaProject()
thisWorkbook = DocModule("ThisWorkbook")
thisWorkbook.addFile(path)
project.addModule(thisWorkbook)

ProjectOleFile.write_file(project)

The VbaProject class has many layers of customization available. For example a library reference can be added to the project.

codePage = 0x04E4
codePageName = "cp" + str(codePage)
libidRef = ReferenceRecord(codePageName, LibidReference(
    "{00020430-0000-0000-C000-000000000046}",
    "2.0",
    "0",
    "C:\\Windows\\System32\\stdole2.tlb",
    "OLE Automation"
))
oleReference = Reference(codePageName, libidRef, "stdole")
project.addReference(oleReference)

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

ms_ovba-0.0.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

ms_ovba-0.0.1-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file ms_ovba-0.0.1.tar.gz.

File metadata

  • Download URL: ms_ovba-0.0.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ms_ovba-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c2319e2f8d4364d65eeee5fc24595c0129801ff0a00a5e3dcad3639367c85d44
MD5 8e8117f261824fef171734986aa70725
BLAKE2b-256 3b24a47fa2d57cb99847d06f6443623f4693c8af75a46ecc75a199513281e4f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ms_ovba-0.0.1.tar.gz:

Publisher: python-publish.yml on Beakerboy/MS-OVBA

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

File details

Details for the file ms_ovba-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ms_ovba-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ms_ovba-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da093525428effce8d432784b598212d95e7f906e7a7b3422a6b80d9a183b400
MD5 1b13d97668fdcd7111bb3ac5ef0eec71
BLAKE2b-256 ef5601a89f1f1632e80936dd5a2c84455f11da27fe52dfcb789ac67a894b65ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for ms_ovba-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on Beakerboy/MS-OVBA

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