Results 1 to 2 of 2

Search Button - Finds Part Numbers with numbers, letters and characters

Threaded View

  1. #1
    Registered User
    Join Date
    07-15-2016
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    80

    Search Button - Finds Part Numbers with numbers, letters and characters

    Hi Everyone,

    I currently have a Userform that you type a part number in, which can include letters, numbers, characters (mainly -,*). When clicking the command button with the magnifying glass, it will search the part number in the 'RI PN Info' spreadsheet and pull the appropriate data into the correct textboxes. Unfortunately, it is not working on part numbers with characters in them. Can you please help. Here is part of the code for quick reference.

    Private Sub SearchCB_Click()
    Dim Res As Variant
        row_number = 0
        Res = Application.Match(Val(PartNoTB.Value), Sheets("RI PN Info").Range("A:A"), 0)
        If Not IsError(Res) Then
            SDescriptionTB.Value = Sheets("RI PN Info").Range("C" & Res).Value
            LDescriptionTB.Value = Sheets("RI PN Info").Range("D" & Res).Value
            CustomerTB.Value = Sheets("RI PN Info").Range("E" & Res).Value
            RevTB.Value = Sheets("RI PN Info").Range("F" & Res).Value
            RICodeTB.Value = Sheets("RI PN Info").Range("G" & Res).Value
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 12-01-2017, 12:47 PM
  2. [SOLVED] Setup Textbox to enter only numbers and letters, not especial characters
    By eddyrcabrera79 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2015, 11:52 AM
  3. Selecting letters/characters/numbers separately for a filter
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2014, 09:12 PM
  4. Replies: 1
    Last Post: 02-01-2013, 06:30 PM
  5. [SOLVED] Making a Part# List, Sequential Increments with Letters and numbers in front...
    By kpl39 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-31-2012, 08:29 PM
  6. Replies: 4
    Last Post: 08-06-2012, 11:52 AM
  7. Count specific characters with numbers or letters
    By hoppscrouse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2007, 09:02 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