A package manager for VBA

Based heavily on the design of the much-lauded package manager for Rust, Cargo, vba-blocks aims to make building projects with VBA simple and powerful. vba-blocks consists of three parts:

  1. vba-block.toml is the manifest for a project, allowing you to specify dependencies, references, and source files for building your project
  2. The developer add-in gets your project up-and-going and helps you install and update dependencies and source files
  3. The vba-blocks CLI helps with starting your project and publishing packages for others to use


The manifest format is based on Cargo’s Cargo.toml and is used to specify the dependencies, references, and source files for your package or project.

For reference, here’s what the vba-block.toml would look like for a relatively simple project like VBA-Dictionary:

name = "dictionary"
version = "1.4.1"
authors = ["Tim Hall <[email protected]>"]

Dictionary = "Dictionary.cls"

An example of using the dictionary package in your project:

name = "My Project"
version = "0.0.0"
authors = ["[email protected]"]

A = "A.bas"
B = "B.cls"
C = "C.frm"

dictionary = "1.4.1"

For more details, see the Manifest Format


Usage: vba-blocks [command] [options]

  - new     Create a new project / package in a new directory
  - init     Initialize a new project / package in the current directory
  - build    Build project from manifest
  - export   Export src from built target
  - run      Run macro in document / add-in

Follow along on GitHub