+ Reply to Thread
Results 1 to 4 of 4

Dropdown list multiple select not working in protected sheet

  1. #1
    Registered User
    Join Date
    10-11-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    13

    Dropdown list multiple select not working in protected sheet

    Hey,

    I have a sheet with several multiple select dropdown lists and need to have the worksheet protected. I've been using the below code in ThisWorkbook:

    Please Login or Register  to view this content.
    But when I protect the worksheet the below code stops working, but it was working before I locked it.

    Please Login or Register  to view this content.
    Any help would be much appreciated!

    Thanks
    Oscar

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Dropdown list multiple select not working in protected sheet

    You're doing the right thing by protecting the worksheets with the userinterfaceonly=true switch in the workbook open event.....however.....the reason you need to put this in the workbook open event is because Excel 'forgets' the userinterfaceonly switch whenever you open the workbook.

    The reason it's not working is the sheets are already protected (locked).....and excel has forgotten about the userinterfaceonly switch, therefore, in order to be able to protect these sheets with the userinterfaceonly switch set to true you first need to unprotect them. ie, you can't protect a sheet that's already protected.

    Add code to the worksheet open event to first unprotect all worksheets, then your code that protects all sheets with the userinterfaceonly switch will work correctly.

  3. #3
    Registered User
    Join Date
    10-11-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    13

    Re: Dropdown list multiple select not working in protected sheet

    Hi BellyGas,

    Thanks for getting back to me so quickly! When you say add code to the worksheet open event to first unprotect all worksheets, then my code. Are you able to share an example of what this would look like?

    Thanks
    Oscar

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Dropdown list multiple select not working in protected sheet

    Please Login or Register  to view this content.

+ 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] select multiple values from a cell data validation list dropdown
    By SKooLZ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2017, 08:15 PM
  2. Replies: 16
    Last Post: 10-16-2016, 06:36 AM
  3. [SOLVED] Need password for dropdown list in protected workbook
    By abenny11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2015, 02:52 PM
  4. [SOLVED] Select multiple values from dropdown list
    By DiegoL in forum Excel General
    Replies: 3
    Last Post: 12-10-2014, 06:06 AM
  5. Dropdown list and multiple sheet index/match
    By adepascale in forum Excel General
    Replies: 2
    Last Post: 06-01-2011, 04:30 PM
  6. select multiple items from a dropdown list
    By Rebecca1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-17-2006, 03:50 PM
  7. TAB and focus moving from unprotected cell in protected sheet til dropdown.
    By Claus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2005, 07:05 AM

Tags for this Thread

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