Consulting

Results 1 to 3 of 3

Thread: Run HLOOKUP macro on outcome of Data Validation

  1. #1
    VBAX Newbie
    Joined
    Oct 2012
    Posts
    4
    Location

    Run HLOOKUP macro on outcome of Data Validation

    Hopefully a simple one for VBA gurus out there! Please note im a novice!

    I have a cell that users can select different options from using data validation, no problem.

    However what I cant seem to fathom is, based on the selection from the drop down, how to run a macro that does an HLOOKUP for the selected value in a different (maybe hidden) sheet.

    For example if the drop down selection = "Project Definition" I need a macro to run that goes to an admin worksheet and (opens the worksheet first if hidden) looks up "Project Definition" in the title row.

    Sounds simple but its beyond me right now!


    Any help appreciated!

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Did you need a macro to do it? Why not just use =HLookup? If you must do it in a macro, do it manually by =HLookup first and then post that here.

  3. #3
    VBAX Newbie
    Joined
    Oct 2012
    Posts
    4
    Location
    Yes I need a macro. The user selects from the drop down, then presses a command button to take him/her to the relevant admin area

Posting Permissions

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