ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Disable Customize option next to a tool bar from VB (https://www.excelbanter.com/excel-discussion-misc-queries/51898-disable-customize-option-next-tool-bar-vbulletin.html)

ourspt

Disable Customize option next to a tool bar from VB
 
Hi,

We use excel for our reports and for security reasons, we do not want to
give 'Open' option to our users.
We are able to disable the 'Open' menu option programmatically from VB. We
also want to eliminate the usage of 'Open' tool bar command. To do this, we
need to hide the standard tool bar, by default, when the excel file opens.

What is the way to do this from Visual Basic 6.0?
Thanks in advance
ourspt

Norman Jones

Disable Customize option next to a tool bar from VB
 
Hi Ourspt

To hide the toolbar, try:

Application.CommandBars("Standard").Visible=False

To hide and disable the toolbar, try:

Application.CommandBars("Standard").Enabled=False


---
Regards,
Norman



"ourspt" wrote in message
...
Hi,

We use excel for our reports and for security reasons, we do not want to
give 'Open' option to our users.
We are able to disable the 'Open' menu option programmatically from VB. We
also want to eliminate the usage of 'Open' tool bar command. To do this,
we
need to hide the standard tool bar, by default, when the excel file opens.

What is the way to do this from Visual Basic 6.0?
Thanks in advance
ourspt





All times are GMT +1. The time now is 12:49 PM.

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