Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Worksheet Protection

Hi all,
I have a sheet which runs a macro. Basically, I have a button which inserts
a new line for data entry. I want to restrict modification on the sheet by
the users so I have protected the sheet but have unlocked the cells that can
be changed. However, when I press the button to insert a new row, it errors
on me. Any suggestions as to how I can protect the sheet but allow a new
item to be inserted by using the button?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Worksheet Protection


at the start of the sub enter

ActiveSheet.Unprotect password:="whatever"


at the end enter

ActiveSheet.protect password:="whatever"


--
irishboyx
------------------------------------------------------------------------
irishboyx's Profile: http://www.excelforum.com/member.php...o&userid=32498
View this thread: http://www.excelforum.com/showthread...hreadid=523162

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Worksheet Protection

Thanks!
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
Worksheet Protection Daviv Excel Discussion (Misc queries) 0 January 29th 07 04:08 PM
Worksheet Protection beemerGirL Excel Worksheet Functions 0 November 15th 06 04:26 PM
Cell Protection vs. Worksheet Protection kmwhitt Excel Discussion (Misc queries) 4 September 24th 06 02:37 AM
Worksheet protection is gone and only wokbook protection can be se Eric C. Excel Discussion (Misc queries) 4 May 2nd 06 04:50 PM
Bug in Worksheet protection? Maurice Excel Discussion (Misc queries) 3 March 22nd 06 12:39 PM


All times are GMT +1. The time now is 02:43 AM.

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"