Hiding Tool Bars

brettvba

MrExcel MVP
Joined
Feb 18, 2002
Messages
1,030
Does any know the code to hide all the tool bars , also if poss the start tool bar at the bottom and how to disable keys eg ctrl
??
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
On 2002-02-27 11:21, brettvba wrote:
Does any know the code to hide all the tool bars , also if poss the start tool bar at the bottom and how to disable keys eg ctrl
??

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

Replace standard with the name of the toolbar that you want to hide.
 
Upvote 0
This will disable the control-c, control-v, and control-x shortcuts.

Application.OnKey "^c", ""
Application.OnKey "^v", ""
Application.OnKey "^x", ""

This restores them.

Application.OnKey "^c"
Application.OnKey "^v"
Application.OnKey "^x"

Disables the right click menu in the cell.

CommandBars("Cell").Enabled = False


Removes Excel Menu Bar
CommandBars("Worksheet Menu Bar").Enabled = False

Obviously set enable to TRUE before closing the workbook

Hope this helps,

Rick
 
Upvote 0
If you use the Fullscreen option this will hide the Task Bar.


Sub minimalToolBars()

Application.CommandBars("Standard").Visible = False
Application.CommandBars("Formatting").Visible = False
With Application
.DisplayFormulaBar = False
.DisplayStatusBar = False
.DisplayFullScreen = True
End With

End Sub
 
Upvote 0
I do not know if there is a way to hide the Start bar or not, and I would like to find someone that knew the code to disable the X on the application and the spreadsheet as well. I can disable the X on a userform, but if the other two are still active it doesn't make much sense :wink:

Rick
 
Upvote 0

Forum statistics

Threads
1,223,327
Messages
6,171,484
Members
452,407
Latest member
Broken Calculator

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