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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,214,413
Messages
6,119,372
Members
448,888
Latest member
Arle8907

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