Guide

How to Install and Run a SOLIDWORKS VBA Macro

Import a .bas SOLIDWORKS VBA macro module, run it safely and test it on copied files first.

Install from .bas source

  1. Open SOLIDWORKS.
  2. Create a new macro with Tools > Macro > New.
  3. Open the VBA editor, right-click the project and import the downloaded .bas module.
  4. Run main from the editor or from Tools > Macro > Run.

Safety checklist