Symptoms
When trying to start a VBA Macro, the following error in the status bar of MicroStation might appear:
VBA interface error: Comp manager cannot be created - 0x80040502
Troubleshooting Steps
The problem is the result of a lacking subdirectory for the language version of VBA. When installing VBA regional settings of Appeal to be checked.
For example, a German operating system does not distinguish between the German versions:
Germany (1031) Austria (3079) Switzerland (2055) Liechtenstein (5127) Luxembourg (4103)
Germany (1031)
Austria (3079)
Switzerland (2055)
Liechtenstein (5127)
Luxembourg (4103)
It is created for Germany during the installation in only a 1031 folder.
However, if we use a VBA macro to start, the country code folder is in accordance with the Regional Settings searched and not found, so it comes to this error message.
The problem can be corrected by manually creating and copying contesnt in this missing Folder from the 1031 folder.
You can find the folder
at an English Windows x64:
C:\Program Files (x86)\Common Files\microsoft shared\VBA\VBA6
at an English Windows x32:
C:\Program Files\Common Files\microsoft shared\VBA\VBA6
or instead of "Program Files", a German Windows version will have "Programs".