#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Lock all menu tabs

Hi,

It would be a great help if some can suggest a way to lock or hide all menu
tabs (like select, copy,cut, inser etc) so that the user can use only command
buttons to navigate/perform tasks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Lock all menu tabs

Option Explicit

Private mFormulaBar

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Open()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jithu" wrote in message
...
Hi,

It would be a great help if some can suggest a way to lock or hide all
menu
tabs (like select, copy,cut, inser etc) so that the user can use only
command
buttons to navigate/perform tasks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Lock all menu tabs

Tools|options|View and uncheck sheet tabs will hide them

Mike

"Jithu" wrote:

Hi,

It would be a great help if some can suggest a way to lock or hide all menu
tabs (like select, copy,cut, inser etc) so that the user can use only command
buttons to navigate/perform tasks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Lock all menu tabs

Thanks Bob......Great Job....

"Bob Phillips" wrote:

Option Explicit

Private mFormulaBar

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Open()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jithu" wrote in message
...
Hi,

It would be a great help if some can suggest a way to lock or hide all
menu
tabs (like select, copy,cut, inser etc) so that the user can use only
command
buttons to navigate/perform tasks.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i lock tabs so that only an admin can edit them? Dave_FFM Excel Discussion (Misc queries) 2 April 27th 07 02:00 PM
Worksheet tabs as menu? Kevryl Excel Discussion (Misc queries) 4 July 25th 06 02:18 PM
Missing tabs in Format Cells Menu yappcd Excel Worksheet Functions 0 June 27th 06 08:22 PM
Enhancement Request: Give us ability to lock/freeze tabs in Excel Alyson Calhoun Excel Worksheet Functions 2 June 1st 06 05:36 PM
I have no access to the "tabs" on the options menu of excel Noel W Excel Discussion (Misc queries) 1 July 14th 05 02:24 AM


All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"