+ Reply to Thread
Results 1 to 9 of 9

Data Validation changes reference, loses list

  1. #1
    Registered User
    Join Date
    01-28-2017
    Location
    Falmouth, Maine
    MS-Off Ver
    Office 365 (Excel)
    Posts
    3

    Data Validation changes reference, loses list

    I've searched for and read other data validation forum posts and answers, but none is quite like my problem. I have a fairly complex workbook with one worksheet serving as the input mechanism and other worksheets with reference data. The input worksheet has approximately 150 data points that must be selected (from drop down lists) or entered by the user. Other sections perform a series of calculations and the result is a formatted output report. All the data validation cells in the input worksheet reference data in other worksheets. Some are cascading lists. The problem occurs sporadically and to different cells with drop down validation lists. The function will work fine and consistently for some time, and then a drop down validation will be blank. When I go to Data Validation I see the range of cells in the reference range has changed to a range of cells in the input worksheet, not the reference cells I had specified in one of the reference data worksheets. I don't know of anything I've done to cause this and as I said it is sporadic. It's annoying and embarrassing as I created this tool for the boss and QA'd it extensively and then when he goes to use it it has these errors. Can anyone provide a solution or tell me where i have erred? Many thanks.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Data Validation changes reference, loses list

    Hi, welcome to the forum

    There is no way a range, formula, DD will just change by itself, there must be something acting on it to change it.
    Are you inserting/deleting rows?
    Copying data that might over-write something?
    Have any macros running in the background?
    Anyone else that might be messing with it by accident?

    Can you perhaps upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Data Validation changes reference, loses list

    Welcome to the forum

    Without seeing how everything is referenced it is difficult to guess what may be the problem.
    In my experience data validation lists do not magically change on their own, and so something is making them change.
    Are any of the data validation lists refreshed via VBA?
    How are Named Ranges created - are they being refreshed via VBA?
    Named range "Names" can be set up either at Worksheet level or Woorkbook level - this may be the source of your problem. A worksheet level name can only look to a specific worksheet, but a workbook level name can look to any worksheet for its range.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Data Validation changes reference, loses list

    This may help narrow the focus of your checking
    The VBA creates a new sheet, lists all your named ranges and its "refers to" range (in sheet order), with workbook level names listed separately
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-28-2017
    Location
    Falmouth, Maine
    MS-Off Ver
    Office 365 (Excel)
    Posts
    3

    Re: Data Validation changes reference, loses list

    Thanks for your prompt reply and suggestions. I will upload a workbook with the essentials later today. I agree it should not happen and that something I am doing must be causing it. But the really odd piece is that the reference range changes from one worksheet to the input worksheet in all cases that this occurs. Stay tuned for sample. Thxs.

  6. #6
    Registered User
    Join Date
    01-28-2017
    Location
    Falmouth, Maine
    MS-Off Ver
    Office 365 (Excel)
    Posts
    3

    Re: Data Validation changes reference, loses list

    Kev_, Thanks for the suggestion. I'll look into it and see what's going on. Stay tuned.

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Data Validation changes reference, loses list

    My bet is on a bit of lazy VBA coding
    - using Range("A2") may appear to be ok when a sheet has been selected elsewhere further up the code, but then any workbook level name "RefersTo" range will also look to the SAME worksheet, regardless of which sheet it originally referred to!!

    Create a workbook with several sheets, Create a worksheet level named range "Testname" and point it at cell A2 in sheet 1 and then run this code:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-21-2018
    Location
    Essex, England
    MS-Off Ver
    2016
    Posts
    1

    Re: Data Validation changes reference, loses list

    I am having the same issue, I do not use VBA so I wouldn't expect this to be the cause of the problem. My spreadsheet is locked so no one else has the ability to make changes. I use data validation to create a drop down list using cells on a different sheet in the same workbook. I set the data validation info, save the file, (sometimes) re-open the file and the data validation has changed to the same range of cells but on the sheet that the drop down box is on instead of the sheet where the info was selected.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Data Validation changes reference, loses list

    JeremyPW welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ 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. Cross Reference (Vlookup) based on Data Validation List Dropdown
    By eguirocker3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 05:02 PM
  2. Auto-Generate List from reference cells based on data validation list selection
    By BoundCustomDesign in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-13-2014, 11:06 AM
  3. [SOLVED] Data Validation List to Return Variable/Dynamic Data based on Reference Table
    By dilbert1865 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2014, 09:08 AM
  4. Replies: 3
    Last Post: 05-23-2013, 06:23 AM
  5. Replies: 5
    Last Post: 01-31-2013, 01:03 PM
  6. select mo/yr w/data validation list, insert celll entry into vba file reference code
    By ShannonHowell in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-10-2011, 04:07 AM
  7. Replies: 3
    Last Post: 06-03-2009, 12:37 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