ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Getting rid of command bar chevrons that allow "customize" menu (Excel 2003) (https://www.excelbanter.com/excel-programming/362066-getting-rid-command-bar-chevrons-allow-customize-menu-excel-2003-a.html)

Travich

Getting rid of command bar chevrons that allow "customize" menu (Excel 2003)
 
I have seen several topics on this, but no real good answer. One
solution suggested remove the toolbars altogether. Unfortunately, I
want to keep my formatting and standard toolbars on the screen.

I've locked all the other ways to customize a toolbar. If I could
remove this option, I would be set. I've tried several things in VBA
without any luck.

It makes me wonder if it's actually a command bar property that can be
turned off. Anyone know???


Travich

Getting rid of command bar chevrons that allow "customize" menu (Excel 2003)
 
One other note:
Application.CommandBars("Toolbar list").Enabled = False still allows
the "customize" menu to appear.


GS

Getting rid of command bar chevrons that allow "customize" menu (E
 
Hi Travich,

Would this work for you?

Application.CommandBars.DisableCustomize=True

This affects all commandbars in the collection. You should remember to set
it to False when your project closes.

HTH
Garry

GS

Getting rid of command bar chevrons that allow "customize" men
 
I failed to mention that my suggestion only applies to v10 and later.
Otherwise, you may have to iterate the commandbars collection and set the
..Protection property for each bar to msoBarNoCustomize.

Regards,
Garry

Travich

Getting rid of command bar chevrons that allow "customize" menu (E
 
Thanks Gary, that worked great and I found this solution a few days
ago.

I've been able to learn how to completely control EVERYTHING through
locking this down and customizing commandbars. I'm surprised to find
that even a right click falls under command bars. It's been a good
learning experience. :)

GS wrote:
Hi Travich,

Would this work for you?

Application.CommandBars.DisableCustomize=True

This affects all commandbars in the collection. You should remember to set
it to False when your project closes.

HTH
Garry




All times are GMT +1. The time now is 08:13 PM.

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