+ Reply to Thread
Results 1 to 3 of 3

Drop Down control fails when sheet is protected

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Drop Down control fails when sheet is protected

    I have a worksheet where I've used a drop down control. Based on the selection, the associated code copies data from one set of cells to another. I've used unprotect and protect code at the beginning and end yet when selecting options from the drop down I get the -sheet is protected- error. Code is below if anyone can determine what is wrong here. I've used this same protect and unprotect on other worksheets without this kind of problem.

    I've made sure that the control is not locked, I've even unlocked the cells where the control data is located and neither of these options work.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Drop Down control fails when sheet is protected

    In some cases it only works if the sheet that contains the dropdown lists is the active sheet.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Drop Down control fails when sheet is protected

    What I have found is that when I set up the controls, I also configured "Cell link". It's this cell that is locked and it appears that the control attempts to change the linked cell before the vba code is allowed to run (which would unlock all the cells) and this is causing the error. Rather than unlock this cell on the worksheet with the control (so that users don't tab over to it when using the worksheet), I configured the link to point to another worksheet that is unlocked and hidden.

    Problem solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Drop down sorting of protected sheet
    By roloreed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-18-2015, 02:17 PM
  2. Macro Chart.Axes fails in Protected sheet
    By shammi_Raj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2013, 01:27 AM
  3. Chart Macro Fails When Sheet Is Protected
    By Philb1 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-16-2011, 06:03 AM
  4. Replies: 0
    Last Post: 05-24-2011, 09:53 AM
  5. Combo-box fails in a protected sheet
    By pacharbo in forum Excel General
    Replies: 2
    Last Post: 10-13-2006, 02:54 PM
  6. Control on Sheet - Drop Down 1
    By Arturo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2005, 12:06 PM
  7. [SOLVED] [SOLVED] MoveAfterReturn fails because sheet is protected
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2005, 11:06 PM

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