Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sheet protection error msg - Unrequested sheet activation

Hello,

I have designed one worksheet in my workbook to be completely
read-only, by protecting the sheet so that no cells can be selected
(EnableSelection = xlNoSelection).

As expected, when the user doubleclicks the sheet (to try to edit a
cell), this message is displayed:

"The cell or chart you are trying to change is protected and
therefore read-only..."

Showing the above message is fine, but when the user clicks "OK", Excel
automatically selects/activates another sheet -- an internal data sheet
that the user is never supposed to see! Coincidentally, Excel always
selects the Sheet1 worksheet object, which is not necessarily the first
sheet listed in the sheet tabs.

How can I get Excel to stop selecting this different sheet whenever the
error message is displayed??

Alternatively, is there a way that I can specify which sheet Excel
automatically selects?

Any help or advice would be greatly appreciated.

Thanks,
Deltree

P.S. I've tried adding code that turns off Application.DisplayUpdates
to the Worksheet_BeforeDoubleClick subroutine, but this does not stop
the error message from showing or the unrequested sheet change.


---
Message posted from http://www.ExcelForum.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
Excel Data Protection Best Practice: AKA: Real Sheet Protection Mushman(Woof!)[_2_] Excel Discussion (Misc queries) 4 December 30th 09 01:20 AM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Sheet protection Smitty Excel Discussion (Misc queries) 7 January 11th 09 12:26 AM
Sheet activation CWillis Excel Discussion (Misc queries) 5 June 1st 06 09:50 PM
Sub Error with Sheet Protection Enabled? pcsis Excel Programming 1 December 19th 03 03:59 AM


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