+ Reply to Thread
Results 1 to 2 of 2

creating data validation list from vba & display the dependent description in msgbox

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    35

    creating data validation list from vba & display the dependent description in msgbox

    i have Countrylist in column X and its capital in column Y . the country & city list is populated in the sheet from database

    i am creating a data validation list dropdown in cell K9
    Please Login or Register  to view this content.
    wht i need is whtever data item is selected from the list its corresponding capital shld be displayed in mgsbox
    i need it from VBA
    Last edited by svibuk; 12-11-2013 at 01:18 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: creating data validation list from vba & display the dependent description in msgbox

    The better alternative is to create a dynamic named range, "CountryList" for the country list using:

    Please Login or Register  to view this content.
    Name the cell K9 "CountryPick"

    Then your VB code would just be a sheet change event that checks if X9 changes and pops the msgbox:
    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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. Replies: 3
    Last Post: 10-08-2013, 11:48 AM
  2. Replies: 2
    Last Post: 09-07-2013, 03:55 AM
  3. Creating 4th, 5th.... dependent list (validation List)
    By Elainefish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2013, 04:51 PM
  4. Data Validation List - Dependent on Adjacent Cell - Value from Unsorted List
    By justforthis1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2013, 12:24 PM
  5. Creating a Dependent Validation List
    By cpalmer72 in forum Excel General
    Replies: 5
    Last Post: 01-31-2013, 12:38 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