[CONNECT VBA] Projects loaded before file is opened

Hi,

It seems that MicroStation loads the VBA project connected to the last WorkSet loaded even before any file is opened.

I have a VBA project in WorkSet A that hooks into file open/close events. When I start CONNECT, it remembers the last WorkSpace/WorkSet that was used (in this case WorkSet A) and it is pre-selected in the backstage. If I select some other WorkSpace/WorkSet and open a file the code connected to the file open/close event from WorkSet A is still executed.

This makes it impossible to switch between different WorkSpaces/WorkSets that has VBA-code containing event hooks.

Regards,

Krister