Consulting

Results 1 to 3 of 3

Thread: Data Validation list referencing

  1. #1
    VBAX Regular
    Joined
    Apr 2010
    Posts
    32
    Location

    Data Validation list referencing

    Is it possible to reference a range in workbook1 and then use it as a validation list in workbook2?

    Thanks

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    When I tried I got:
    "You cannot use referencs to other worksheets or workbooks for Data Validation criteria"

    Now this is not quite true, you can use references to data on other sheets if they're named ranges. Of course, we're trying other workbooks.
    I was trying the likes of:
    ='C:\Documents and Settings\someone\My Documents\Vlidation.xlsx'!ValList
    in the Source field.

    A workround is to have that formula in a sheet somewhere in a range the same size (array entered), name it and use that in the source field:
    =AnotherList

    which worked grabbing the info from a closed workbook.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    I selected a cell in Workbook2.xls and defined a name

    Name: myList
    RefersTo: [Workbook1.xls]Sheet1!$A$1:$A$10

    and then set validation on a cell in Workbook2 with a list source of =myList

    Whenever Workbook1.xls was open, the validation list was as expected.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •