+ Reply to Thread
Results 1 to 7 of 7

VBA help needed to add data validation based on matching column header from another sheet

  1. #1
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    VBA help needed to add data validation based on matching column header from another sheet

    Hi Folks,

    Please help me with a code to add data validation automatically from sheet "DropList" based on matching column header.



    I have attached the work book what I am trying to accomplish.

    Thanks in advance.

    Joshi
    Attached Files Attached Files
    Last edited by krjoshi; 04-11-2017 at 11:45 PM.
    Cheers,

    Joshi
    Being with a winner makes you a winner

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: VBA help needed to add data validation based on matching column header from another sh

    Something like this


    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: VBA help needed to add data validation based on matching column header from another sh

    Hi Mike,
    Thanks for your time and help. Please be informed that the code is not working. Could you plesse advise to fix the issues.

    Many thanks,

    Joshi

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: VBA help needed to add data validation based on matching column header from another sh

    What do you mean by not working so I can advise how to fix? Code works on the example workbook that you have uploaded.

  5. #5
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: VBA help needed to add data validation based on matching column header from another sh

    I am really sorry Mike.

    Its working..... i was copying the code to wrong sheet.. great code. Thanks a lot for your help.

    Joshi

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: VBA help needed to add data validation based on matching column header from another sh

    Hi krjoshi,

    I don't think you need VBA to do what I think you want. I've created a bunch of DNR (Dynamic Named Ranges) on your lists sheet and used them as data validation on your second sheet. See if this works the way you want. You can add stuff to your lists and it will automatically show up when you do data validation. Look at Formula Tab -> Named Ranges to see the names and the Data Tab -> Data Validation to see what I've done.
    DataValidationDNRs.xlsm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: VBA help needed to add data validation based on matching column header from another sh

    Hi MarvinP,

    Great.... thank you so much for your valuable advice and support. Many many thanks.
    Joshi

+ 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. [SOLVED] Creating New Worksheets, Copying Data to New Sheet Based on Matching Column Header
    By cbauer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2017, 03:21 AM
  2. Helped needed to index match row header, column header, and sheet
    By vw103604 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2016, 12:37 PM
  3. [SOLVED] Based on Column Header find and copy data from one sheet to another
    By Sachy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2014, 10:00 AM
  4. [SOLVED] vba help needed to filter data then copy to another sheet by matching column header
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2014, 01:52 PM
  5. Replies: 12
    Last Post: 01-31-2013, 03:30 PM

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