Full Screen GUI Grey Bar Issue

business_analyst

Board Regular
Joined
Jun 5, 2009
Messages
99
Hello All,

So I have some code located in ThisWorkbook:

Code:
Sub ApplicationDisplay()
    Dim cbar As CommandBar
    
    With ActiveWindow
        .DisplayHorizontalScrollBar = False
        .DisplayVerticalScrollBar = False
        .DisplayWorkbookTabs = False
        .DisplayHeadings = False
    End With
    
    With Application
        .DisplayFormulaBar = False
        .DisplayStatusBar = False
    End With
    
    For Each cbar In Application.CommandBars
        cbar.Enabled = False
    Next cbar
    
'To disable specific commandbars:
'    CommandBars("Worksheet Menu Bar").Enabled = False
    
' Turns scrollbars off for all workbooks:
' Application.DisplayScrollBars = False

End Sub
I call this on workbookopen so that it appears to the user like a full blown program/application and not an excel workbook. This works fine, however once the user clicks on any Button, or enters any Userform, this ugly distorted grey bar appears on the top of the screen. It looks as if the graphics weren't updated right. I can't figure out how to make this go away. I tried searching the web, and this issue has happened to other ppl, but there doesn't seem to be any solutions out there. Any help would be greatly appreciated. Thanks.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top