+ Reply to Thread
Results 1 to 5 of 5

Data Validation error from Deleted Cells

  1. #1
    Registered User
    Join Date
    05-05-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2003
    Posts
    3

    Angry Data Validation error from Deleted Cells

    I have a spreadsheet that has multiple data validation cells. Recently, I deleted a column that contained data validation. Now when I make an entry to the column to the right, I am getting validation errors that pertained to the deleted column of data. When I select the cell that is giving the error and check the data validation, it shows "any value" is checked. I have selected all of the cells in that column and cleared the validation, but I am still getting the validation errors. I think this is an Excel 2007 issue, but I cannot locate the data validation from the deleted cells. When I search for validation, the column is NOT highlighted, so Excel believes there is no validation in the cells, but I still get a popup message and the data is cleared. This is driving me crazy and I haven't found anyone else with this issue. I can provide the sheet if necessary.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation error from Deleted Cells

    Quote Originally Posted by Lindleman View Post
    I can provide the sheet if necessary.
    That would be a good start. Click GO ADVANCED and use the paperclip icon to post up your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-05-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Data Validation error from Deleted Cells

    Here is the sheet. I removed all of the data except for the cells in question. Curiously, if you delete a column to the left of the validation cells, it moves the validation to the next column to the right. Weird. I am wondering if it a problem with the named range that was deleted as well?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-05-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Data Validation error from Deleted Cells

    The data validation problem is in the Date column.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation error from Deleted Cells

    There is no data validation going on here. There is a Worksheet_Change macro active on this worksheet.

    Right-click on the sheet tab and select VIEW CODE. You will find two macros inside the sheet module.

    The Worksheet_Change macro is watching column 11 and looking at the column to the left of it. It's a VBA-based kind of validation. If you don't want this macro active, delete it.

    There is also a Workbook_Open macro in this same module which should not be there. Either delete it or move the code to the ThisWorkbook module where it belongs.

+ 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