+ Reply to Thread
Results 1 to 2 of 2

Barcode scanning - serial numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    03-12-2018
    Location
    Sofia
    MS-Off Ver
    2016
    Posts
    4

    Barcode scanning - serial numbers

    Hi there,

    I have in a row more that 700 serial numbers.
    I have also a barcode scanner.

    If i'm scanning the serial number (barcode area) is it possible the result jump to one of these 700 numbers in the sheet where is it match?

    Thank you in advance!

    Regards,
    Nick

  2. #2
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Barcode scanning - serial numbers

    Hi NPen,

    Assuming Your Serial Number in Col A
    Try Below Code and also Find attached file

    Option Explicit
    
    Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
        
        
          Dim s As String
      Dim MyRange As Range, r As Range
    
      Set MyRange = Sheet1.Range("A2:A100000")
        
        
        If KeyCode = 13 Then
            s = frm77.TextBox1.Value
            
            
                      Set r = MyRange.Find(s)
                     
                        If Not r Is Nothing Then
                           r.Select
                           Set r = Nothing
                           frm77.TextBox1.Value = ""
                           
                        Else
                           MsgBox "Not Found"
                           Set r = Nothing
                           frm77.TextBox1.Value = ""
                           
                        End If
                        
                     
             
              
           
    
        End If
        
        
    End Sub
    Attached Files Attached Files

+ 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. Barcode Scanning - Library
    By _LG_ in forum Excel General
    Replies: 3
    Last Post: 05-15-2024, 07:32 AM
  2. barcode scanning
    By mojobaabby in forum Excel General
    Replies: 12
    Last Post: 02-01-2017, 04:19 PM
  3. Barcode scanning help
    By abirup in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2016, 04:36 AM
  4. Barcode scanning
    By abirup in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2016, 08:39 AM
  5. VBA barcode scanning
    By JoboM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2015, 02:30 AM
  6. [SOLVED] Check barcode scanning
    By intex in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-25-2015, 02:23 PM
  7. [SOLVED] Issues with barcode scanning
    By qmccain in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2015, 01:34 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