View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default Disable the toolbar options button

Read this note from this page
http://www.rondebruin.nl/menuid.htm

Disable right clicking on the worksheet menu bar and other bars in 97 SR1 and above.

On Error Resume Next
Application.CommandBars("Toolbar List").Enabled = False
On Error GoTo 0

This prevents users double-clicking on the Toolbar area to open the
(Customize Toolbars) dialog in Excel 2002 and above.
Application.CommandBars.DisableCustomize = True

If you want to remove Type a question for Help on the Worksheet Menu Bar you
can use this in Excel 2002 and above. True = hidden and False = visible
Application.CommandBars.DisableAskAQuestionDropdow n = True

You can use this to avoid the error in Excel 2000

If Val(Application.Version) 9 Then
CallByName CommandBars, "DisableCustomize", VbLet, True
CallByName CommandBars, "DisableAskAQuestionDropdown", VbLet, True
End If



--

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




"Paul" wrote in message ...
Hi,

I'm using Excel 2003.

I've created a custom toolbar for use in a certain document. This is the
only toolbar I would like the user to have access to. Therefore I've disabled
al other toolbars and disbled the "toolbar list". The only thing I can't
disable is the little toolbar option button (with a little down arrow in it)
on the right side of the custom toolbar.

Is there a way to disable this little button?

Cheers,

Paul.