Results 1 to 2 of 2

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

Threaded View

  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
    rList = "=Sheet1!$X$1:$X$10" 
    
        With Sheet1.Range("K9:K9")
            With .Validation
            .Delete
            .Add xlValidateList, xlValidAlertStop, xlBetween, "=" & rList
            .IgnoreBlank = True
            .InCellDropdown = True
            .InputTitle = ""
            .ErrorTitle = ""
            .InputMessage = ""
            .ErrorMessage = ""
            .ShowInput = True
            .ShowError = True
            End With
        End With
    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.

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