SOLIDWORKS macros are a popular method for automating tasks and extending the functionality of SOLIDWORKS through its API. However, there are instances when these macros may not work as expected.
One common issue is being unable to open an existing macro. If this problem occurs with every macro you try to open, it may be due to a problem with VBA (Visual Basic for Applications).
Solution: To resolve this issue, you can reinstall VBA through the SOLIDWORKS installer.
- Navigate to the following path:
SOLIDWORKS XXXX\PreReqs\VBA
. - Double-click on both
vba71_1033
andvba71
to initiate the VBA reinstallation. - After the reinstallation is complete, restart your computer.
Once your system has rebooted, the macro should open without any issues.