Formula Bar

Brutium

Board Regular
Joined
Mar 27, 2009
Messages
188
Hello everyone...

I know this has been asked many times before, but so far I have not been able to find the threads. Can anyone help me?

I am trying to hide the formula bar in my workbook using VBA. I know that I can uncheck the box under View for the Fotrmula Bar, but I would like to hide this automatically once the workbook is opened, and make it visible for subsequent applications.

How do I do this?

Thanks for any help...
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I think I found the code I was missing....
HTML:
Private Sub Workbook_Activate()
    ActiveWindow.DisplayHeadings = False
    Application.DisplayFormulaBar = False
    Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
End Sub
and
HTML:
Private Sub Workbook_Deactivate()
        'ActiveWindow.DisplayHeadings = True
        Application.DisplayFormulaBar = True
        Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"
End Sub

But now the issue is that once I change worksheets, the labels on the columns and rows appear again.

I am STUMPED!!!!

PLEASE HELP.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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