+ Reply to Thread
Results 1 to 4 of 4

Protect/Unprotect Cell Range on "Double-Click"

  1. #1
    Registered User
    Join Date
    10-25-2011
    Location
    philly
    MS-Off Ver
    Excel 2003
    Posts
    16

    Protect/Unprotect Cell Range on "Double-Click"

    Greetings all,

    I have a sheet that drives a userform when double clicking on any cell in column "F". The sheet is in "protected" mode, with cells L4:L100 locked. All other cells can be selected.

    Please Login or Register  to view this content.
    What I need to be able to do is unlock cells L4:L100 temporarily while the userform is displayed to allow the results of the form to populate in column "L". Once populated, I will re-lock these cells to prevent users from modifying their content.

    When executing the above code, the userform no lo longer gets displayed after making the double-click.


    Any thoughts?

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Protect/Unprotect Cell Range on "Double-Click"

    as an option
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by john55; 04-16-2012 at 10:19 AM.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    10-25-2011
    Location
    philly
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Protect/Unprotect Cell Range on "Double-Click"

    Thanks for the response John. However, I think I left out an important detail that is making this fix complicated-

    The cells that I am performing the "double click" on are data validation cells with a drop down list. For whatever reason, the code you provided does not execute properly when double clicking on a cell with data validation.

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Protect/Unprotect Cell Range on "Double-Click"

    no, it does not.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1