+ Reply to Thread
Results 1 to 1 of 1

search cell values from textbox value on userform

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-10-2014
    Location
    Alberta
    MS-Off Ver
    2016
    Posts
    128

    search cell values from textbox value on userform

    Hello, I am confused with this one. What I want to happen is that when a person is entering a name into a textbox on a userform they will be given suggestions of a name(s) previously entered. What I already have is when people press submit, the name in the testbox "Guestname" the value is placed on a cell on Sheet1 and on Sheet11. Sheet11 ("Total Guests") is where I want the textbox to scan names to provide suggestions. Is this possible?

    On Sheet11 the names are listed from Column A, Row 2 all the way down. Here is the current code I have, but it just keeps kicking me to Sheet11 and not doing what it used to do.

    Private Sub Guestname_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
    Dim test1 As String
    Dim FoundRange As Range
         
        test1 = Guestname.Value
        Sheet11.Activate
         
        Set FoundRange = Sheet11.Cells.Find(what:=test1, LookIn:=xlFormulas, LookAt:=xlWhole)
         
        If FoundRange Is Nothing Then
            Guestname.Text = FoundRange.Value
        End If
    End Sub
    Last edited by Templemind; 09-10-2014 at 10:35 PM.

+ 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. Search textbox value in a different workbook and display other column values in userform
    By SierraKilo78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 01:29 PM
  2. 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
  3. Transferring the Userform Textbox Values To a Single Cell As Comment Indicator
    By antzint in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2012, 04:09 PM
  4. 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