Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default --edit --clear --all; Can removed from standard menu?

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default --edit --clear --all; Can removed from standard menu?


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.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default --edit --clear --all; Can removed from standard menu?

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
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
Standard Edit to Multiple Cells jwksu Excel Discussion (Misc queries) 4 December 31st 07 04:42 PM
Drop Down Menu on the Standard Toolbar Thyagaraj Excel Programming 1 July 17th 06 11:59 AM
add button to standard menu bar [email protected] Excel Programming 2 January 28th 06 03:22 AM
Menu item created w/ add-in removed due other add-in Michael Malinsky[_3_] Excel Programming 2 September 16th 04 07:21 PM
Adding icon to standard menu Eric[_6_] Excel Programming 1 December 16th 03 07:10 PM


All times are GMT +1. The time now is 04:41 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"