VBA - A general purpose autorun macro

In Adding information to the MicroStation Title Bar an autorun macro adds useful information to the application window title bar on file open or model close.

This macro can also be used to run any other actions appropriate to file open or model close events that can be programmed using MVBA. If there is some action that needs to be executed every time a file opens this macro may be a way of achieving that.

The example MVBA attached has a simple If sequence, shown below that retrieves the active WorkSpace name and sends it to the Message Center:

This content can be replaced by one or more actions or variations of the macro containing different actions could be saved for use at organisation level or in different WorkSpaces or WorkSets.