PC Review


Reply
Thread Tools Rate Thread

-->edit -->clear -->all; Can removed from standard menu?

 
 
cate
Guest
Posts: n/a
 
      6th Mar 2010
I have tried a dozen protection setups in an attempt to keep someone
from using clear all to delete data in unlocked cells. (They need to
change values in these cells thus the access). Clear contents is OK.

Is there a vba way to remove this particular entry in the standard
excel menu?

Thank you.

excel 2003
 
Reply With Quote
 
 
 
 
cate
Guest
Posts: n/a
 
      6th Mar 2010

> I have tried a dozen protection setups in an attempt to keep someone
> from using clear all to delete data in unlocked cells. *(They need to
> change values in these cells thus the access). *Clear contents is OK.
>
> Is there a vba way to remove this particular entry in the standard
> excel menu?


My savior, record macro, didn't come thru for me. I get no output
when I manually remove the ALL from the menu:

-->Tools -->Customized =Edit ....
I could send this out like this, I will, but would be nice to be able
to do this in the code.




 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      6th Mar 2010
This worked ok in my USA/English menus (xl2003):

Option Explicit
Sub auto_open()
With Application.CommandBars("worksheet menu bar")
.Controls("Edit").Controls("Clear").Controls("All").Enabled = True
End With
End Sub
Sub auto_Close()
With Application.CommandBars("worksheet menu bar")
.Controls("Edit").Controls("Clear").Controls("All").Enabled = True
End With
End Sub

I like to keep the option there, but disable it.

But if you want to hide it, you .visible = false (and true when the workbook
closes).

ps.

This really won't stop anyone. If they customize their toolbars, they can
add/rename the control to anything they want--or use a macro to do the clear
all.



cate wrote:
>
> > I have tried a dozen protection setups in an attempt to keep someone
> > from using clear all to delete data in unlocked cells. (They need to
> > change values in these cells thus the access). Clear contents is OK.
> >
> > Is there a vba way to remove this particular entry in the standard
> > excel menu?

>
> My savior, record macro, didn't come thru for me. I get no output
> when I manually remove the ALL from the menu:
>
> -->Tools -->Customized =Edit ....
> I could send this out like this, I will, but would be nice to be able
> to do this in the code.


--

Dave Peterson
 
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
Change Word Edit>SelectAll to Edit>Select>SubMenu like Edit>Clear> =?Utf-8?B?TW9udGUgSGFucmFoYW4=?= Microsoft Word New Users 9 11th Jun 2006 07:52 PM
How do I clear program list of removed programs and Hotfix entries and realphebetize? msnews.microsoft.com Microsoft Windows 2000 7 25th Nov 2004 02:55 PM
How do I clear the cache, and can I select cookies to be removed,. =?Utf-8?B?QnJpYW5KMTAxMA==?= Microsoft Word Document Management 1 16th Nov 2004 02:18 PM
removed microsoft office standard editions 2003 =?Utf-8?B?bmFlYW50cm9yaWM=?= Microsoft Access Getting Started 1 9th Nov 2004 12:49 PM
Removal of websight addresses not removed by the clear history button Blu Windows XP Internet Explorer 2 28th Jan 2004 02:50 PM


Features
 

Advertising
 

Newsgroups
 


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