"Failed To Initialize Visual Basic" And "Runtime Error R6025" Errors When Launching SOLIDWORKS On Windows 10

This article goes over the current workaround needed to resolve the "Failed to initialize Visual Basic" and "Runtime Error R6025" messages that prevent SOLIDWORKS from being launched on Windows 10.

Summary

When attempting to launch SOLIDWORKS on Windows 10, the user receives a "Failed to initialize Visual Basic for Apps" error, which is immediately followed by a "Microsoft Visual C++ Runtime Library" error. When these error windows are closed, the SOLIDWORKS splash screen will crash.

error_3.png

error_4.png

Solution

Currently, there are four known workarounds to resolve this issue. Each computer, however, may have a different way to repair the issue, please try one solution at a time. It is best to check the compatibility mode of the launcher first, as it appears to be the most common fix.

Compatibility mode of the launcher

compatibility_mode.png

  1. Right-click your SOLIDWORKS launcher shortcut on your desktop
  2. Click on Properties and go into the compatibility tab of the new window.
  3. Un-check the "Run this program in compatibility mode for:" box if it is selected.
  4. Apply the changes and click OK.
  5. Once you click OK verify if the shortcut begins to work again. If it does, repeat the steps above with your other SOLIDWORKS shortcuts.

Launching from the SLDWORKS.exe

sldworks.png

  1. Navigate to the SOLIDWORKS install directory. By default, this is: C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS
  2. Find the main SOLIDWORKS executable named "SLDWORKS.exe". 
  3. Attempt to launch SOLIDWORKS via "SLDWORKS.exe". If the software successfully launches, proceed with the next steps. 
  4. Create a new SOLIDWORKS shortcut using "SLDWORKS.exe". In Windows 10, the easiest way to accomplish this is to right-click on "SLDWORKS.exe" > Send to > Desktop (create shortcut).
  5. Confirm that SOLIDWORKS launches using this new shortcut. 

Repair Microsoft Office

  1. Navigate to the Windows Control Panel then go to Programs -> Programs and Features
  2. Find what version of Microsoft Office is installed in the programs list and Modify the installation.
  3. Choose the repair radio button and click continue
  4. If this does not repair the issue re-try the "Launching from SLDWORKS.exe" again. It is possible that repairing Microsoft office allows the SLDWORKS.exe to work properly and launch SOLIDWORKS.

Creating a new Admin User Profile

  1. Click the Windows start button and select Settings. Next click Accounts -> Family & other People -> Add Someone else to this PC.
  2. Click on Change Account Type in the Family & Other People section and select the newly created profile.
  3. Under Account Type select Administrator for the user profile, then click OK to save it.
  4. Restart the machine and sign in as the new administrator account.
  5. Attempt to launch the SLDWORKS.exe located in C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS again. If SOLIDWORKS launches successfully delete the old User Profile so the new Admin one is the main profile.

Re-installing SOLIDWORKS using the Installation Manager or Admin Image

Depending on the method SOLIDWORKS has originally installed another potential workaround is to uninstall SOLIDWORKS and re-install it using the other method.

If installed using an Administrative Image:

  1. On a computer where SOLIDWORKS is running properly create an Administrative Image. For instructions on how to create an administrative image please reference our guide.
  2. Copy the administrative image folder onto the computer with the VBA error, then uninstall the current installation of SOLIDWORKS.
  3. In the Administrative image folder navigate to the program SolidWorks.Msi located in \64bit\SOLIDWORKS folder.

This will install SOLIDWORKS using the source files within the administrative image, you can select what add-ins to install based on the license you will activate on it. 

If installed using the Installation Manager, Source files, or Disks:

  1. Locate a copy of the SOLIDWORKS installation disks, source files, or installation manager for the version of SOLIDWORKS you wish to install. 
  2. Follow the installation instructions outlined in our guide for standalone installations.
Was this article helpful?
0 out of 1 found this helpful

Comments

1 comment
  • For me, this error started happening randomly (no Windows patches or even reboots between when it worked and stopped working), and the "Compatibility Mode" box was not checked, but when I check it and choose "Windows 7", that seems to work around this issue. I'm running Windows 10 (1809) and SW 2022 SP05.

    0

Please sign in to leave a comment.