Consulting

Results 1 to 5 of 5

Thread: Data Validation List: source from other Worksheet?

  1. #1
    VBAX Contributor
    Joined
    Jun 2006
    Posts
    135
    Location

    Data Validation List: source from other Worksheet?

    I'm trying to do a data validation list, and in excel I can't specify the source from another Worksheet. Is there a way to do it in Excel, or if no in VBA?

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    If you use a range you can access it for data validation from any sheet
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Contributor
    Joined
    Jun 2006
    Posts
    135
    Location
    ??
    I don't understand.

    When I specify in the source: =Sheet2!$A$1:Sheet2!$A$7, I get the error message: "You may not use references to other worksheets or workbooks for Data Validation criteria"

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Quote Originally Posted by lucas
    If you use a range you can access it for data validation from any sheet
    If you use a range NAME you can access it for data validation from any sheet
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    You can also use indirect to use a list from a different sheet. Try using this for your data validation:
    =INDIRECT("Sheet2!A1:A10")
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

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