Welcome

Edit VBA and VSTA macros in SOLIDWORKS

Edit ArticleEdit Article

Source code for VBA macros (*.swb and .swp) as well as VSTA macros (.csproj and *.vbproj) can be edited directly within SOLIDWORKS.

  • Navigate to Tools->Macro->Edit menu command

Edit macro menu command
Edit macro menu command

  • Browse for the specified macro (change file filter if necessarily)
  • Alternatively select the macro from the recent files if available

This command will open new VBA Editor or Visual Studio (VSTA macro editor).

Modify the code as needed and save the changes

Notifications

Join session by SOLIDWORKS and PDM API expret Artem Taturevych at 3DEXPERIENCE World 2025 on Feb 26 at 08:30 AM CST to explore 10 essential macros for automating drawings, assemblies, custom properties, and more


Product of Xarial Product of Xarial