Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Prevent insert/delete rows - sheet code


Hi Guys
Excel 2003
I want to prevent the user from inserting/delete rows on certain sheets
in the workbook. On this site I got an idea to display a message
[Worksheet_Activate] which works fine, but that's not really what
I want. The problem is these messages appears when I run other code
like "Sort sheets by name" etc..
I guess the " Worksheet_Activate" should be replaced by something like
Worksheet_change.

I don't know how to do this.

As always, any assistance will be appreciated.

--
HJN
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Prevent insert/delete rows - sheet code


Select menu item Tools - Protection - Protect Sheet.

Check the boxes against those things you want the user to be able to do and
leave the others unchecked.

Enter a password. (You will be prompted to enter it again.)

WARNING: Don't forget the password.

--
Regards,

OssieMac


"Hennie Neuhoff" wrote:

Hi Guys
Excel 2003
I want to prevent the user from inserting/delete rows on certain sheets
in the workbook. On this site I got an idea to display a message
[Worksheet_Activate] which works fine, but that's not really what
I want. The problem is these messages appears when I run other code
like "Sort sheets by name" etc..
I guess the " Worksheet_Activate" should be replaced by something like
Worksheet_change.

I don't know how to do this.

As always, any assistance will be appreciated.

--
HJN

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Prevent insert/delete rows - sheet code


Forgot to say that before implementing my previous suggestion you may want to
select all cells that you want the user to be able to edit then select menu
item Format - Cells - Protection tab and uncheck Locked.

--
Regards,

OssieMac


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
Prevent Insert Row and Delete Row from Menu Sherry Excel Discussion (Misc queries) 4 August 14th 08 06:54 PM
Prevent worksheet Rows to Delete. Shazi Excel Programming 1 June 18th 08 02:36 PM
prevent row insert in a range of rows pcorbani Excel Programming 1 March 8th 06 02:01 PM
how do i prevent a #REF! error when i delete non adjacent rows? ChuckSF Excel Worksheet Functions 1 August 5th 05 05:08 AM
Prevent sheet add or delete Glen Mettler[_2_] Excel Programming 1 January 22nd 05 05:38 PM


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