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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,213,483
Messages
6,113,919
Members
448,533
Latest member
thietbibeboiwasaco

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