+ Reply to Thread
Results 1 to 4 of 4

Unable to use data validation in protected sheet

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    3

    Unable to use data validation in protected sheet

    i have sheet with data validation(list) on it. but i cannot use the validation list after protecting sheet using VBA. below is code i used to protect sheet.

    Please Login or Register  to view this content.
    please help!.
    Last edited by vimal768; 12-05-2014 at 03:45 AM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Unable to use data validation in protected sheet

    Hi there,

    You don't really need to lock the cells because you're effectively protecting them by applying validation to any value which the User enters.

    Just unlock the cells using the FormatCells feature and remove the following line from your code:

    Please Login or Register  to view this content.
    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Unable to use data validation in protected sheet

    Thanks Greg, it worked.

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Unable to use data validation in protected sheet

    Hi again,

    Many thanks for your feedback - I'm glad that I was able to help.

    Regards,

    Greg M

+ 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. Combobox Data Validation on Protected Sheet
    By medz80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2014, 01:40 AM
  2. 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
  3. Replies: 1
    Last Post: 05-15-2013, 01:55 PM
  4. 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
  5. List, Data Validation, unlocked cell, protected sheet.....
    By Kane in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-08-2005, 07:06 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