PC Review


Reply
Thread Tools Rate Thread

Disabling Toolbar

 
 
=?Utf-8?B?RnJhbmNpcyBBbmc=?=
Guest
Posts: n/a
 
      6th Oct 2006
I am trying to disable the 'Insert' and 'View' of the worksheet menu bar with
the following codes -

Application.CommandBars("Insert").Enabled = false
Application.CommandBars("View").Enabled = false

but is having a problem; only 'View' is disabled but 'Insert' is not. Is
it because
"Insert" cannot be disabled in this manner? Is so, how can I disable
'Insert'.

Thank you.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SGFsaW0=?=
Guest
Posts: n/a
 
      6th Oct 2006
Hi Ang,

Try this one :
CommandBars(1).Controls("insert").Enabled = False

Because Insert is a control of Worksheet Menu Bar is index=1
so I use 1
--

Regards,

Halim


"Francis Ang" wrote:

> I am trying to disable the 'Insert' and 'View' of the worksheet menu bar with
> the following codes -
>
> Application.CommandBars("Insert").Enabled = false
> Application.CommandBars("View").Enabled = false
>
> but is having a problem; only 'View' is disabled but 'Insert' is not. Is
> it because
> "Insert" cannot be disabled in this manner? Is so, how can I disable
> 'Insert'.
>
> Thank you.
>
>

 
Reply With Quote
 
=?Utf-8?B?RnJhbmNpcyBBbmc=?=
Guest
Posts: n/a
 
      6th Oct 2006
Thanks alot Halim. Appreciate your help very much.

"Halim" wrote:

> Hi Ang,
>
> Try this one :
> CommandBars(1).Controls("insert").Enabled = False
>
> Because Insert is a control of Worksheet Menu Bar is index=1
> so I use 1
> --
>
> Regards,
>
> Halim
>
>
> "Francis Ang" wrote:
>
> > I am trying to disable the 'Insert' and 'View' of the worksheet menu bar with
> > the following codes -
> >
> > Application.CommandBars("Insert").Enabled = false
> > Application.CommandBars("View").Enabled = false
> >
> > but is having a problem; only 'View' is disabled but 'Insert' is not. Is
> > it because
> > "Insert" cannot be disabled in this manner? Is so, how can I disable
> > 'Insert'.
> >
> > Thank you.
> >
> >

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      6th Oct 2006
Hi

Better to use Id numbers instead of the name
No problem if you run it in a non English version

See
http://www.rondebruin.nl/menuid.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Francis Ang" <(E-Mail Removed)> wrote in message news:F4DF9177-9DB4-4510-81C2-(E-Mail Removed)...
> Thanks alot Halim. Appreciate your help very much.
>
> "Halim" wrote:
>
>> Hi Ang,
>>
>> Try this one :
>> CommandBars(1).Controls("insert").Enabled = False
>>
>> Because Insert is a control of Worksheet Menu Bar is index=1
>> so I use 1
>> --
>>
>> Regards,
>>
>> Halim
>>
>>
>> "Francis Ang" wrote:
>>
>> > I am trying to disable the 'Insert' and 'View' of the worksheet menu bar with
>> > the following codes -
>> >
>> > Application.CommandBars("Insert").Enabled = false
>> > Application.CommandBars("View").Enabled = false
>> >
>> > but is having a problem; only 'View' is disabled but 'Insert' is not. Is
>> > it because
>> > "Insert" cannot be disabled in this manner? Is so, how can I disable
>> > 'Insert'.
>> >
>> > Thank you.
>> >
>> >



 
Reply With Quote
 
=?Utf-8?B?RnJhbmNpcyBBbmc=?=
Guest
Posts: n/a
 
      10th Oct 2006
Hi Ron,

Thank you for the execellent tip. Appreciate it very much.

"Ron de Bruin" wrote:

> Hi
>
> Better to use Id numbers instead of the name
> No problem if you run it in a non English version
>
> See
> http://www.rondebruin.nl/menuid.htm
>
> --
> Regards Ron de Bruin
> http://www.rondebruin.nl
>
>
>
> "Francis Ang" <(E-Mail Removed)> wrote in message news:F4DF9177-9DB4-4510-81C2-(E-Mail Removed)...
> > Thanks alot Halim. Appreciate your help very much.
> >
> > "Halim" wrote:
> >
> >> Hi Ang,
> >>
> >> Try this one :
> >> CommandBars(1).Controls("insert").Enabled = False
> >>
> >> Because Insert is a control of Worksheet Menu Bar is index=1
> >> so I use 1
> >> --
> >>
> >> Regards,
> >>
> >> Halim
> >>
> >>
> >> "Francis Ang" wrote:
> >>
> >> > I am trying to disable the 'Insert' and 'View' of the worksheet menu bar with
> >> > the following codes -
> >> >
> >> > Application.CommandBars("Insert").Enabled = false
> >> > Application.CommandBars("View").Enabled = false
> >> >
> >> > but is having a problem; only 'View' is disabled but 'Insert' is not. Is
> >> > it because
> >> > "Insert" cannot be disabled in this manner? Is so, how can I disable
> >> > 'Insert'.
> >> >
> >> > Thank you.
> >> >
> >> >

>
>
>

 
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
disabling a toolbar JohnE Microsoft Access Form Coding 3 9th Jul 2009 08:01 PM
DDE Links are disabling my toolbar Microsoft Excel Programming 0 16th Mar 2004 09:08 PM
Disabling toolbar buttons =?Utf-8?B?bWFya2Vib3k=?= Microsoft VB .NET 1 10th Feb 2004 04:02 AM
Disabling the explorer toolbar in IE6 Jay Windows XP Internet Explorer 0 20th Jan 2004 07:45 PM
Disabling Print on TOOLBAR Dan Gesshel Microsoft Excel Programming 5 23rd Oct 2003 10:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 PM.