Skip to main content
Faqs

Why does CATIA V5 crash when creating a new VBA library or running a macro?

CATIA V5 may crash when attempting to create a new VBA library or run a macro due to missing or improperly installed dependencies, particularly related to Microsoft Visual C++ Redistributables and VBA components. Here’s how to resolve this issue:

  1. Install required Microsoft Visual C++ Redistributables
    • Ensure that both 32-bit and 64-bit versions of the latest Microsoft Visual C++ Redistributable Packages are installed on your system.
  2. Install VBA components in the correct order
    • Locate the required VBA components in the installation directory of CATIA V5 (e.g., win_64VBA or rootVBA) and install them in the following order:
      • Vba71_x86_KB2803801.msp
      • Vba71_x86_1033_KB2803801.msp
      • Vba71_x64_KB2803801.msp
      • Vba71_x64_1033_KB2803801.msp
  3. Check for registry issues
    • If multiple versions of CATIA are installed on your system, registry conflicts may cause crashes. Run the following command with administrative privileges to ensure registry coherence for the active CATIA version:
      • text
      • dsyadmregsrv.exe -set CATIA
  4. Verify macro references
    • In the VBA editor (Alt + F11), go to Tools > References and ensure that all required libraries are properly selected and accessible. Missing or obsolete references can cause runtime errors.
  5. Additional troubleshooting tips
    • Delete corrupted settings by removing the CATSettings folder from your user directory.
    • Ensure that your system meets the minimum hardware and software requirements for your version of CATIA.
    • If macros still fail, test them on another machine with a clean CATIA installation to rule out environmental issues.

Are you ready to talk?