Hiding or Showing the Status Bar with Excel VBA

,

This post will guide you how to hide or display the status bar in Excel. How do I hide or display the status bar with Excel VBA macro code.

Hiding Status Bar


If you want to hide the status bar in your current workbook in Excel, you can use an Excel VBA macro to achieve the result. Just do the following steps:

#1 open your excel workbook and then click on “Visual Basic” command under DEVELOPER Tab, or just press “ALT+F11” shortcut.

Get the position of the nth using excel vba1

#2 then the “Visual Basic Editor” window will appear.

#3 click “Insert” ->”Module” to create a new module.

convert column number to letter3

#4 paste the below VBA code into the code window. Then clicking “Save” button.

hide status bar vba1

Sub HideStatusBar()
    Application.DisplayStatusBar = False
End Sub

#5 back to the current worksheet, then run the above excel macro. Click Run button.

hide status bar vba2

#6 let’s see the result.

hide status bar vba3

Showing Status Bar


You can use the following VBA macro code to achieve the result.

Sub HideStatusBar()
    Application.DisplayStatusBar = True
End Sub

 

Leave a Reply