PC Review


Reply
Thread Tools Rate Thread

Disable the toolbar options button

 
 
Paul
Guest
Posts: n/a
 
      29th Jul 2009
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.
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      29th Jul 2009
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.DisableAskAQuestionDropdown = 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" <(E-Mail Removed)> wrote in message news:381089D2-6FD1-40FA-B2EC-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      29th Jul 2009
Ron,

Thanks for the useful information, good info!

But;

I couldn't get quite what I was looking for;

I couldn't find any reference to the "Toolbar Options" button, It displays
on every toolbar (custom or regular) in excel 2003. (Other versions might as
well, I don't know). It's not a button with a faceID, it's a very narrow
button on the far right of every toolbar. When you click on it it will show a
drop down (sub)menu with " add or remove buttons" when you hoover this
(sub)menu the list with available toolbars will unfold (grayed out because I
disabled that), follow at the bottom with a option to "Customize". This
button i would like to disable / delete / whatever.... as long as the user
can't use it.

Any ideas?

Cheers,

Paul

"Ron de Bruin" wrote:

> 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.DisableAskAQuestionDropdown = 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" <(E-Mail Removed)> wrote in message news:381089D2-6FD1-40FA-B2EC-(E-Mail Removed)...
> > 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.

>
>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      29th Jul 2009
Hi Paul

Application.CommandBars.DisableCustomize = True

The arrow is still there but the options in the menu are disabled

--

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




"Paul" <(E-Mail Removed)> wrote in message news:BB0FE84F-2171-4DB3-8EB9-(E-Mail Removed)...
> Ron,
>
> Thanks for the useful information, good info!
>
> But;
>
> I couldn't get quite what I was looking for;
>
> I couldn't find any reference to the "Toolbar Options" button, It displays
> on every toolbar (custom or regular) in excel 2003. (Other versions might as
> well, I don't know). It's not a button with a faceID, it's a very narrow
> button on the far right of every toolbar. When you click on it it will show a
> drop down (sub)menu with " add or remove buttons" when you hoover this
> (sub)menu the list with available toolbars will unfold (grayed out because I
> disabled that), follow at the bottom with a option to "Customize". This
> button i would like to disable / delete / whatever.... as long as the user
> can't use it.
>
> Any ideas?
>
> Cheers,
>
> Paul
>
> "Ron de Bruin" wrote:
>
>> 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.DisableAskAQuestionDropdown = 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" <(E-Mail Removed)> wrote in message news:381089D2-6FD1-40FA-B2EC-(E-Mail Removed)...
>> > 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.

>>
>>


 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      30th Jul 2009
Ron,

Thanks, I'll try it as soon as I get back from my vacation!!

Cheers,

Paul

"Ron de Bruin" wrote:

> Hi Paul
>
> Application.CommandBars.DisableCustomize = True
>
> The arrow is still there but the options in the menu are disabled
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
>
>
> "Paul" <(E-Mail Removed)> wrote in message news:BB0FE84F-2171-4DB3-8EB9-(E-Mail Removed)...
> > Ron,
> >
> > Thanks for the useful information, good info!
> >
> > But;
> >
> > I couldn't get quite what I was looking for;
> >
> > I couldn't find any reference to the "Toolbar Options" button, It displays
> > on every toolbar (custom or regular) in excel 2003. (Other versions might as
> > well, I don't know). It's not a button with a faceID, it's a very narrow
> > button on the far right of every toolbar. When you click on it it will show a
> > drop down (sub)menu with " add or remove buttons" when you hoover this
> > (sub)menu the list with available toolbars will unfold (grayed out because I
> > disabled that), follow at the bottom with a option to "Customize". This
> > button i would like to disable / delete / whatever.... as long as the user
> > can't use it.
> >
> > Any ideas?
> >
> > Cheers,
> >
> > Paul
> >
> > "Ron de Bruin" wrote:
> >
> >> 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.DisableAskAQuestionDropdown = 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" <(E-Mail Removed)> wrote in message news:381089D2-6FD1-40FA-B2EC-(E-Mail Removed)...
> >> > 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.
> >>
> >>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate button in toolbar options =?Utf-8?B?SG93MQ==?= Microsoft Access Form Coding 1 8th Aug 2007 03:07 PM
disable print button in toolbar =?Utf-8?B?UGF0cmljaWE=?= Microsoft Access Forms 2 3rd May 2007 03:52 PM
What does the Toolbar options button do? =?Utf-8?B?VG9vbGJhciBvcHRpb25zIGJ1dHRvbg==?= Microsoft Word Document Management 1 2nd Apr 2005 10:58 PM
Disable toolbar printer button Jim White Microsoft Access Forms 3 6th Jan 2004 06:51 PM
Disable/Enable Toolbar Options Dan Bair Microsoft Access VBA Modules 2 28th Nov 2003 03:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:14 PM.