ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hiding menubar & toolbar (https://www.excelbanter.com/excel-programming/288649-hiding-menubar-toolbar.html)

SIMONÉ

hiding menubar & toolbar
 
how do I hide the menu bar - File Edit Tools etc , when
the workbook is opened?

I would also like to hide all the toolbars?

Please help

Ron de Bruin

hiding menubar & toolbar
 
Try this examples

If you only want to hide the menu bar use

Application.CommandBars(1).Enabled = False


Sub hide()
Dim bar As CommandBar
For Each bar In Application.CommandBars
bar.Enabled = False
Next
End Sub

Sub show()
Dim bar As CommandBar
For Each bar In Application.CommandBars
bar.Enabled = True
Next
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"SIMONÉ" wrote in message ...
how do I hide the menu bar - File Edit Tools etc , when
the workbook is opened?

I would also like to hide all the toolbars?

Please help





All times are GMT +1. The time now is 12:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com