"Class not registered" VBA Error


Product(s):InRoads
Version(s):08.11.07+, 08.11.09+
Area: General

  

Problem:

 

Received the following error when trying to open a file.

 

 

Solution:

 

If you recently updated or modified Microsoft Office, that was most likely the cause of the issue. This means that there is a missing or incorrect Microsoft Windows registry entry for the Dynamic Link Library FM20.dll. To fix this issue, do the following:

 

For 32-bit OS:

  1. Make sure Bentley products are closed
  2. Open Command Prompt as Administrator
  3. Type "regsvr32 FM20.dll" and hit ENTER
  4. Verify if the issue persists.

For 64-bit OS:

  1. Make sure Bentley products are closed
  2. Open Command Prompt as Administrator
  3. Type "cd C:\Windows\SysWOW64\"
  4. Type "regsvr32 FM20.dll" and hit ENTER
  5. Verify if the issue persists.

You should get the following message if it completed successfully.

If you want to check to see that FM20.dll registered correctly, do the following:

  1. Open the Registry Editor (Start > Run > regedit)
  2. Use CTRL + F to find the CLSID. Using the picture above as an example, you would search "C62A69F0".
  3. Select the different keys until you find the file path of FM20.dll. It should have worked if it says C:\WINDOWS\system32\FM20.dll

If you received the following message, make sure you are running Command Prompt as Administrator, and try again.

 

 

If you confirmed that the above didn't fix your problem, you may try to uninstall/reinstall InRoads to see if it helps. If not, then try reinstalling a 32-bit version of Microsoft Office.