+ Reply to Thread
Results 1 to 2 of 2

How to Find values according to ComboBox and list it in the text box

Hybrid View

ruveenck How to Find values according... 12-11-2014, 03:20 AM
davesexcel Re: How to Find values... 12-11-2014, 06:35 AM
  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    How to Find values according to ComboBox and list it in the text box

    Hi Experts

    I want to make a UserForm in which i want to search particular items through ComboBox list and display it in the textBoxs . I have the datas in the sheet. What is the formula i need to make in the define name part . Please help me to make it .
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: How to Find values according to ComboBox and list it in the text box

    try this,

    Private Sub CbBox1_Click()
    
        Dim a, b, c, d, rng As Range, sh As Worksheet, s As String
        Set sh = Worksheets("Sheet1")
        Set rng = sh.Range("A1:E26")
        s = CbBox1
    
        a = WorksheetFunction.VLookup(s, rng, 3, 0)
        b = WorksheetFunction.VLookup(s, rng, 2, 0)
        c = WorksheetFunction.VLookup(s, rng, 5, 0)
        d = WorksheetFunction.VLookup(s, rng, 4, 0)
    
        TextBox1 = a
        TextBox2 = b
        TextBox3 = c
        TextBox4 = d
    
    
    End Sub

+ 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] How to het the text in a combobox be something not in the list?
    By AdLoki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 09:31 AM
  2. Including 'all' to combobox list to retrieve all possible values
    By SoCalCisco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2012, 08:09 PM
  3. Find & delete text values from a list
    By Boom3 in forum Excel General
    Replies: 6
    Last Post: 01-26-2012, 01:06 PM
  4. Find ALL WorkSheets according to 2 ComboBox Values.... Help with Code
    By Corey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-07-2006, 06:35 PM
  5. how to populate a combobox with a list of unique values?
    By RIOSGER in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2005, 12:05 AM

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