Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Disable Delete Row

I got all of my other problems fixed. Here is my newest question, sorry if
you are getting tired of them...

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
Application.CommandBars.FindControl(, 293).Enabled = False
End Sub
Private Sub Worksheet_Deactivate()
Application.CommandBars.FindControl(, 293).Enabled = True
End Sub

This disables the delete row for the active sheet, which is perfect. However
when i copy that sheet, i need to enable the delete row. This can be done
anyway possible, i just dont know how to write the code for it. Please
advise...

--
Message posted via http://www.officekb.com

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
How do I disable or delete an Add-In dhstein Excel Discussion (Misc queries) 2 April 13th 09 02:10 AM
Disable the Delete Key CarolK1968 Excel Discussion (Misc queries) 3 January 30th 08 07:20 PM
Disable Delete Kevin Excel Discussion (Misc queries) 0 July 29th 07 02:58 PM
Confirm Delete Message Disable RiosPapa New Users to Excel 2 October 7th 05 09:02 PM
How to disable delete operation Jeff Higgins Excel Programming 3 February 1st 05 01:49 AM


All times are GMT +1. The time now is 06:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"