microsoft visual basic error. class not registered

  

when i try to select any of function keys, this error keeps popping up. any solutions 

Parents Reply
  • Hi ,

    Please verify the steps listed below in order and attempt to verify after each if the problem has been resolved:

    1. Verify you have all the latest Microsoft Windows and Microsoft Office Updates and Security Patches applied. It is possible recent Microsoft security or VBA updates may have made changes where if NOT all updates have been applied Microsoft conditions can be "mismatched or not valid" at your current Windows and Office patch level.
    2. Maybe as your first test (listed 2nd because the first step is often so important) try to start MicroStation (or other Bentley products needed) using: Run As Administrator.
    3. Locate and delete any .BOX and .EXD files from your computer. These are cached control instances that may not update properly and interfere with Microsoft Active-X control and security update policies on your client.

    These steps and some more are provided in the MicroStation VBA Troubleshooting FAQ.

    HTH,
    Bob



Children
  • This did the trick for me:

    Run cmd.exe as administrator.

    Go to c:\windows\system32

    Run command:

    regsvr32 fm20.dll

    This occurs because different Office versions register FM20.DLL in different locations:

    In this case it is the Office 2019 64-bit installation. You can see this in the Registry at this key:

    Computer\HKEY_CLASSES_ROOT\CLSID\{C62A69F0-16DC-11CE-9E98-00AA00574A4F}

    So make sure the version indicated in the VBA references dialog exists and is registered.