• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Fullscreen with Status Bar using VBA

Vivek D

Member
I've created a dashboard and display it full screen using VBA.

Code:
Application.DisplayFullScreen = True
ActiveWindow.DisplayHeadings = False
Application.DisplayFormulaBar = False

However, I would like to display the status bar even in Full screen mode.

Is there a way to do that?
 
Check this!!!

Code:
Sub test()
With Application
    .DisplayFormulaBar = True
    .ExecuteExcel4Macro "SHOW.TOOLBAR(""RIBBON"", true)"
    .WindowState = xlMaximized
    ActiveWindow.DisplayHeadings = True
End With
End Sub
 
Check this!!!

Code:
Sub test()
With Application
    .DisplayFormulaBar = True
    .ExecuteExcel4Macro "SHOW.TOOLBAR(""RIBBON"", true)"
    .WindowState = xlMaximized
    ActiveWindow.DisplayHeadings = True
End With
End Sub

Thanks. That worked! Although I think you meant to write the false instead of true to ensure nothing but just the status bar shows up.

Code:
Sub test()
With Application
    .DisplayFormulaBar = False
    .ExecuteExcel4Macro "SHOW.TOOLBAR(""RIBBON"", False)"
    .WindowState = xlMaximized
    ActiveWindow.DisplayHeadings = False
End With
End Sub
[/quote]
 
Back
Top