Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Deactivating Insert/Delete Row/Column

I have a specialized worksheet that will require that I create a new
menu function that tightly controls how rows are added and deleted and
does not allow for insertion or deletion of columns on a worksheet.

I think I know how to create the custom menu, but how do I deactivate
the insert or deletion of rows/columns using the standard method.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Deactivating Insert/Delete Row/Column

In the workbook_open event eliminate the or gray out the option to do what
you want. Here's some code that disables the delete option from the menu:

'Stop user from being able to delete
Application.CommandBars("Column").Controls("&Delet e").Enabled = False
Application.CommandBars("Row").Controls("&Delete") .Enabled = False
Application.CommandBars("Column").Controls("&Delet e...").Enabled = False
Application.CommandBars("Row").Controls("&Delete.. .").Enabled = False
Application.CommandBars("Edit").Controls("Delete.. .").Enabled = False
Application.CommandBars("Cell").Controls("Delete.. .").Enabled = False

Don't forget to re-enable these options on the workbook close or the next
time the user uses excel he won't have these options.


" wrote in message
oups.com...
I have a specialized worksheet that will require that I create a new
menu function that tightly controls how rows are added and deleted and
does not allow for insertion or deletion of columns on a worksheet.

I think I know how to create the custom menu, but how do I deactivate
the insert or deletion of rows/columns using the standard method.



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
Command of Insert and Delete column to effect in different workshe nsd Excel Discussion (Misc queries) 0 October 9th 09 05:08 PM
Insert or Delete column takes too long Vash Excel Discussion (Misc queries) 0 March 25th 08 04:29 PM
How to Track Column Insert/Delete Event in Excel mac_excel New Users to Excel 3 July 8th 05 12:11 AM
Deactivating Insert /Delete Row/Column [email protected] Excel Programming 0 September 22nd 04 04:16 AM
Row/Column Insert/Delete Von Shean Excel Programming 1 January 21st 04 10:09 AM


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