VBA ProjectLegacy value for ShowStatusBar setting is not "sticky"

  • 7022989
  • 21-May-2018
  • 03-Jul-2018


Reflection Desktop (including Pro, for IBM, or for UNIX and OpenVMS) 16.0 or higher
Reflection 2014
Reflection Pro 2014
Reflection for IBM 2014
Reflection for UNIX and OpenVMS 2014
Reflection for IBM 2011
Reflection for UNIX and OpenVMS 2011
Reflection Standard Suite 2011


The VBA ProjectLegacy value for the ShowStatusBar setting is not “sticky” and is reset to the default value of False each time the Host session is loaded.  The legacy .StatusBar method is used in VBA macros to display messages on the legacy status bar and the value of ShowStatusBar = True must be set to have the legacy Status Bar and these messages display.  Recording a macro in Reflection for UNIX and OpenVMS version 14 will add Session.StatusBar = messages in the recorded macro to display status of the macro on the Status Bar.  When setting the value of “Show Status Bar” to True in Reflection version 14 under “View Settings”, the changed value will stay set after unloading and reloading a Host session.


This issue has been reported to Engineering.


Add the line listed below to the macro to display the legacy Status Bar when needed:

Sub DisplayTextinLegacyStatusBar()
        Dim StatusText As String
        StatusText = "Test Message to Display in Legacy Status Bar"
        Session.ShowStatusBar = True   ' <--- add this line to existing macro
        Session.StatusBar = StatusText
End Sub


Reported to Engineering