PC Review


Reply
Thread Tools Rate Thread

BeforeDoubleClick on Protected Sheet

 
 
Paul
Guest
Posts: n/a
 
      6th Oct 2009
I use BeforeDoubleClick on a number of protected sheets, and it works
perfectly.

I have one particular model which has a protected sheet, the cell being
accessed is unlocked, validation on the cell being double-clicked and it will
only work when the sheet is unprotected.

I have tried placing a breakpoint on the worksheet code, but it doesn't seem
to get called.
 
Reply With Quote
 
 
 
 
Charlie
Guest
Posts: n/a
 
      6th Oct 2009
That's true. You seem to have hit on a quirk. When the sheet's protected it
seems to skip the BeforeDoubleClick and go directly into data validation.
Cells without data validation don't skip the event. I don't know what to
tell you to do to fix it but I've made note of it for my own reference!

"Paul" wrote:

> I use BeforeDoubleClick on a number of protected sheets, and it works
> perfectly.
>
> I have one particular model which has a protected sheet, the cell being
> accessed is unlocked, validation on the cell being double-clicked and it will
> only work when the sheet is unprotected.
>
> I have tried placing a breakpoint on the worksheet code, but it doesn't seem
> to get called.

 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      8th Oct 2009
My workaround is to remove the Excel data validation, then code my own
validation using Worksheet_Change, then application.INDEX (or match or
vlookup) to look up the entry in the required list. Not very pleasant but
leaves the double click operative !!

"Charlie" wrote:

> That's true. You seem to have hit on a quirk. When the sheet's protected it
> seems to skip the BeforeDoubleClick and go directly into data validation.
> Cells without data validation don't skip the event. I don't know what to
> tell you to do to fix it but I've made note of it for my own reference!
>
> "Paul" wrote:
>
> > I use BeforeDoubleClick on a number of protected sheets, and it works
> > perfectly.
> >
> > I have one particular model which has a protected sheet, the cell being
> > accessed is unlocked, validation on the cell being double-clicked and it will
> > only work when the sheet is unprotected.
> >
> > I have tried placing a breakpoint on the worksheet code, but it doesn't seem
> > to get called.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid protected cell warning on BeforeDoubleClick WS event Matt Microsoft Excel Programming 2 15th Apr 2010 11:59 AM
Chart Sheet BeforeDoubleClick David Microsoft Excel Programming 2 29th Mar 2010 12:28 PM
Protected cells in Protected sheet Nenad_S Microsoft Excel Programming 0 5th Feb 2008 02:40 PM
Copying a protected sheet to another sheet or workbook loses prote Rudy Microsoft Excel Crashes 0 30th Nov 2007 10:17 PM
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet arunjoshi Microsoft Excel Programming 1 2nd May 2004 03:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.