+ Reply to Thread
Results 1 to 4 of 4

data validation multiple selection protected sheet

  1. #1
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    data validation multiple selection protected sheet

    Hi Excel Guru's

    I have found the following code on the forum, it allows multiple selection from a drop down list, separating the items with a comma, in a single cell

    Please Login or Register  to view this content.
    This code works ok

    However, my sheet is protected, and once protected the above code does not work

    I have seen some comments saying the function "xlCellTypeAllValidation" will not work on a protected sheet, but have not had any luck in finding a workaround

    Hope you can help

    Thanks in advance for any replies

    Simon.xlsx

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: data validation multiple selection protected sheet

    By default, all cells on a worksheet are locked. However, that has no effect unless the sheet is protected. Try using Format | Protection | and uncheck Locked for every cell where you need user input.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: data validation multiple selection protected sheet

    Hi Trevor, Thanks for your quick reply

    That is something I had already tried, before turning to the forums for expert help

    The code still does not run regardless of the cell been locked or unlocked

    I also tried using the Unprotect and protect functions in my VBA Code, but no joy

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: data validation multiple selection protected sheet

    You'll probably need both. If the cell is Locked, you can't change it so the Change event handler won't fire. Then you'll need to UnProtect the sheet while you process the change.

    If you don't tell us what you've tried, we don't know. Where have you put the UnProtect and Protect?

    You need to share the updated code and, ideally, a sample workbook.

+ 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. Unable to use data validation in protected sheet
    By vimal768 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2014, 06:16 AM
  2. Combobox Data Validation on Protected Sheet
    By medz80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2014, 01:40 AM
  3. Replies: 1
    Last Post: 09-05-2013, 09:38 PM
  4. ComboBox/Data Validation won't work when sheet is protected.
    By Butler82Paul in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 11:38 AM
  5. Replies: 0
    Last Post: 06-28-2012, 01:08 AM
  6. Multiple Selection Data Validation and Placement of Selection.
    By LCS in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-08-2012, 08:48 AM
  7. Can't add Data Validation to Protected Sheet
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-20-2011, 07:52 PM

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