Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Detecting a sheet unprotect?

It doesn't seem possible to detect when a user unprotects a sheet. It
doesn't set off a Worksheet_Change event. Is there some way to detect this?

Don <donwiss at panix.com.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Detecting a sheet unprotect?

Password protect the sheet. If the user legitimately need to unprotect the
sheet give thtem a button to do so and you will know when they are
unprotecting. You will want to give them another button to protect. The only
hole in this plan is if the unprotect using your button and then re portect
using the menu...

Otherwise I am not aware of any way to catch that event...

HTH

"Don Wiss" wrote:

It doesn't seem possible to detect when a user unprotects a sheet. It
doesn't set off a Worksheet_Change event. Is there some way to detect this?

Don <donwiss at panix.com.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Detecting a sheet unprotect?

Don,
I haven't tried this but perhaps a Worksheet_change event in which you look
for an err. ie when the user tries to change a locked cell and gets the
"protected sheet error msg" that should give your sub an error, which you
want and will then be ignored by your code. On the other hand if there is NO
error then you can take whaterver steps you want, knowing that the sheet is
not protected.

"Don Wiss" wrote:

It doesn't seem possible to detect when a user unprotects a sheet. It
doesn't set off a Worksheet_Change event. Is there some way to detect this?

Don <donwiss at panix.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 to Unprotect sheet mangesh Excel Discussion (Misc queries) 1 July 24th 06 10:34 PM
Unprotect sheet when printing bbc1 Excel Discussion (Misc queries) 2 August 31st 05 01:41 AM
Detecting Macro Code behind a sheet (2) Chris Gorham[_3_] Excel Programming 10 December 31st 03 06:12 PM
Detecting Macro code behind a sheet Chris Gorham[_3_] Excel Programming 3 December 31st 03 01:39 AM
unprotect sheet in code and make sheet visible peach255 Excel Programming 1 August 1st 03 03:28 AM


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