vbapm Installer
February 23, 2026 ยท View on GitHub
Install Latest Version
Windows
In powershell, run the following:
iwr https://raw.githubusercontent.com/vbapm/installer/refs/heads/main/install.ps1 | iex
Mac
In terminal, run the following:
curl -fsSL https://raw.githubusercontent.com/vbapm/installer/refs/heads/main/install.sh | sh
For more recent versions of Office for Mac, you will need to trust access to the VBA project object model for vbapm to work correctly:
Trust access to the VBA project object model
- Open Excel
- Click "Excel" in the menu bar
- Select "Preferences" in the menu
- Click "Security" in the Preferences dialog
- Check "Trust access to the VBA project object model" in the Security dialog
Install Specific Version
Windows
iwr https://raw.githubusercontent.com/vbapm/installer/refs/heads/main/install.ps1 -out install.ps1; .\install.ps1 v0.2.0
Mac
curl -fsSL https://raw.githubusercontent.com/vbapm/installer/refs/heads/main/install.sh | sh -s v0.2.0
Notes
The installer scripts use the GitHub REST API to discover the latest release download URL. This avoids relying on scraping the GitHub releases HTML page, which requires JavaScript to render asset links.
Known Issues
Could not create SSL/TLS secure channel
PS C:\> iwr https://vba-blocks.com/install.ps1 | iex
iwr : The request was aborted: Could not create SSL/TLS secure channel.
At line:1 char:1
+ iwr https://vba-blocks.com/install.ps1 | iex
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
When does this issue occur?
If your systems' ServicePointManager is configured to use an out-dated security protocol, such as, TLS 1.0.
How can this issue be fixed?
Configure your system to use an up-to-date security protocol, such as, TLS 1.2:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Running scripts is disabled
PS C:\> iwr https://vba-blocks.com/install.ps1 -out install.ps1; .\install.ps1 v0.2.10
.\install.ps1 : File C:\install.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:63
+ ... ://vba-blocks.com/install.ps1 -out install.ps1; .\install.ps1 v0.2.10
+ ~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess
When does this issue occur?
If your systems' ExecutionPolicy is Undefined or Restricted.
How can this issue be fixed?
Allow scripts that are downloaded from the internet to be executed by setting the execution policy to RemoteSigned:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
Based on the great work on deno_install