VBA is installed together with the main product like MicroStation and the VBA IDE is fully integrated and reachable from the menu structure.
In the MicroStation CONNECT generation VBA is integrated in the new Ribbon menu, the Macros Ribbon provides links to the existing tools:
The Dialog Launcher opens the macros dialog:
From the Macros dialog we can open macros from specified locations, open the VBA manager, execute selected macros and record new macros, open the VBA Editor or delete selected macros.
The VBA Manager open the VBA projects dialog and provides an overview of all direct accessible VBA projects within the MicroStation environment:
From here we can load projects into the VBA Editor and start editing, also make sure the projects are loaded automatically with MicroStation start.
All projects listed here are found from the MicroStation configuration variable MS_VBASEARCHDIRECTORIES and if a project is marked with “Load on Startup”, it is added to the variable MS_VBAAUTOLOADPROJECTS.
If the icon is clicked to “Show the VBA Editor:
The VBA Editor opens to allow access to the source code of the loaded VBA projects:
VBA also is integrated into the command table of MicroStation and provides keyins to control VBA:
The keyin: macros vba run also opens the VBA Editor
Also the Shortcut ALT-F11 can be used to open the VBA editor, if at least one project is already loaded