Other Sports1 min ago
Excel - Data Validation.
9 Answers
I am trying to insert a drop-down list into a cell using Data Validation. The list is from another workbook. I have followed the instructions given in the help file, but evertime I worh through them I end up with the following error message:-
"You may not use references to other worksheets or workbooks for Data Validation criteria!"
This message appears to contradict the information in the help file. Can anyone offer some guidance as to where I am going wrong?
"You may not use references to other worksheets or workbooks for Data Validation criteria!"
This message appears to contradict the information in the help file. Can anyone offer some guidance as to where I am going wrong?
Answers
Best Answer
No best answer has yet been selected by AngelofDeath. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.The error message pretty much sums up exactly what it says. As far as I'm aware you can't use information from another workbook to populate data validation.
You could script a Macro to pull information across to the workbook and then populate the validation list, however this seems a little counterintuitive since Data Validation tends to be a fixed (non-changing) list of information, therefore pulling this info every time would be a waste of time.
It would be easier to just have the list on a hidden workbook somewhere and reference it that way.
You could script a Macro to pull information across to the workbook and then populate the validation list, however this seems a little counterintuitive since Data Validation tends to be a fixed (non-changing) list of information, therefore pulling this info every time would be a waste of time.
It would be easier to just have the list on a hidden workbook somewhere and reference it that way.
The help file actually gives instructions to: "Use a different worksheet in a different workbook". That's what is confusing.
I wanted to use a list that is constantly being updated, thereby giving the most current choice each time. I can already achieve this using a different worksheet in the same workbook and it works well. The data I'm looking at is unfortunately in someone elses spreadsheet and it seems a waste of time having to copy this list to my workbook everytime. I shall certainly investigate using a macro.
Thanks.
I wanted to use a list that is constantly being updated, thereby giving the most current choice each time. I can already achieve this using a different worksheet in the same workbook and it works well. The data I'm looking at is unfortunately in someone elses spreadsheet and it seems a waste of time having to copy this list to my workbook everytime. I shall certainly investigate using a macro.
Thanks.
As a general rule of thumb, I'd ignore any and all 'Help' files distributed by Mr Microsoft and his un-helpful team of developers and stick to the forums where people who actually use the software can provide solutions!
In terms of Macro use, I'm not sure how proficient you are with them, but sounds like perhaps the Workbook_Change event or Workbook_Open events may be what your looking for.
If you need help writing something, let me know.
In terms of Macro use, I'm not sure how proficient you are with them, but sounds like perhaps the Workbook_Change event or Workbook_Open events may be what your looking for.
If you need help writing something, let me know.
Hi jordi2k, I've just been seent this link. It may be of interest.
http://www.contextures.com/xlDataVal05.html
http://www.contextures.com/xlDataVal05.html
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.