LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default how to Delete Format Menu Toolbar From Excel

Try

Sub Enabled_False()
Dim Ctl As CommandBarControl

On Error Resume Next
For Each Ctl In Application.CommandBars.FindControl(ID:=30006).Con trols
Ctl.Enabled = False
Next Ctl
Application.CommandBars.FindControl(ID:=30026).Ena bled = True
On Error GoTo 0
End Sub


Sub Enabled_True()
Dim Ctl As CommandBarControl

On Error Resume Next
For Each Ctl In Application.CommandBars.FindControl(ID:=30006).Con trols
Ctl.Enabled = True
Next Ctl
On Error GoTo 0
End Sub




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"vicky" wrote in message ...
thanks a lot . i just need to de - activate the sheet option in format
menu bar . this line de-activates whole format menu bar
Application.CommandBars.FindControl(ID:=30026).Ena bled = True

 
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
Cannot view the menu or toolbar in Excel Menu Toolbars Excel Discussion (Misc queries) 2 June 19th 06 06:31 AM
Excel worksheet Menu Toolbar Mikey Excel Worksheet Functions 5 May 23rd 06 06:36 PM
How to deploy custome toolbar/Menu commands in Excel? Hiten Excel Worksheet Functions 3 May 13th 05 07:41 PM
Excel menu toolbar hyperlink issues Cliff[_3_] Excel Programming 6 August 20th 04 09:31 PM
Adding toolbar/menu command to Excel using C# Aaron Queenan Excel Programming 0 October 29th 03 07:32 PM


All times are GMT +1. The time now is 01:53 AM.

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

About Us

"It's about Microsoft Excel"