Results 1 to 12 of 12

VBA Userform - Lookup/Match Textbox values to prefill other Textbox values

Threaded View

Lee_of_Excel VBA Userform - Lookup/Match... 02-20-2020, 09:00 PM
jindon Re: VBA Userform -... 02-20-2020, 09:31 PM
Lee_of_Excel Re: VBA Userform -... 02-20-2020, 09:40 PM
Lee_of_Excel Re: VBA Userform -... 02-26-2020, 12:05 AM
jindon Re: VBA Userform -... 02-26-2020, 12:23 AM
Lee_of_Excel Re: VBA Userform -... 02-26-2020, 01:04 AM
jindon Re: VBA Userform -... 02-26-2020, 01:10 AM
Lee_of_Excel Re: VBA Userform -... 02-26-2020, 01:16 AM
jindon Re: VBA Userform -... 02-26-2020, 04:13 AM
Lee_of_Excel Re: VBA Userform -... 02-26-2020, 05:58 PM
jindon Re: VBA Userform -... 02-26-2020, 06:19 PM
Lee_of_Excel Re: VBA Userform -... 02-26-2020, 06:27 PM
  1. #1
    Registered User
    Join Date
    11-07-2018
    Location
    Sydney Australia
    MS-Off Ver
    2016 Pro
    Posts
    74

    VBA Userform - Lookup/Match Textbox values to prefill other Textbox values

    Hi All,

    I have a simple userform, which I want to use the values entered in TextBoxMin and TextBoxDOB to lookup my Spreadsheet Range (C3:I12) and return the corresponding values to populate TextboxName, TextBoxCS, TextBoxCP, TextBoxSS, TextBoxDate.

    For Example:

    If the user filled in MIN and DOB, Afterupdate() would vlookup the spreadsheet Range(C3:I12), then and populate Name, Current Hospital, Current Position, Subspecialty and Date. i.e Min1 and Dob1 = Name1, Hospital1, Position1, Subspecialty1, Date1.

    I have attached my workbook.

    I attempted and failed and searched forums and google, but unfortunately not having much luck. Any help would be great!!

    Private Sub TextBoxDOB_Afterupdate()
    
    Dim c As Range
    For Each c In Range("c4:i12")
        If IsText(Application.Match(c, texbox23.Value, 0)) Then
            TextBoxName.Value = Test
        End If
    Next c
    
    End Sub

    Cheers

    <Not listed on any other forums>
    Attached Files Attached Files
    Last edited by Lee_of_Excel; 02-20-2020 at 09:25 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] lookup & match values from userform & insert text from textbox
    By Jamesraywebber85 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2020, 12:47 AM
  2. [SOLVED] Lookup value one TextBox and paste value of another TextBox if there is a Match
    By rakotonirinas in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-11-2019, 06:50 PM
  3. Textbox values to match value in textbox 1 on a userform
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-03-2015, 05:29 PM
  4. [SOLVED] Add UserForm textbox values
    By mkachwee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-07-2012, 10:13 AM
  5. Userform to search textbox value to place other textbox values in worksheet
    By mattyh555 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2012, 11:38 AM
  6. Userform: Pass textbox values to another textbox on button press
    By adjustermn in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2010, 11:19 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