+ Reply to Thread
Results 1 to 4 of 4

Excel item scan out with barcode scanner with text strings varies

  1. #1
    Registered User
    Join Date
    05-12-2018
    Location
    india
    MS-Off Ver
    2010
    Posts
    4

    Post Excel item scan out with barcode scanner with text strings varies

    If my length of character of text box value vary, from product to product then below is not working.File is attached.

    [VBA]
    If Len(Me.TB1.Value) <> 12 Then Exit Sub
    [VBA]

    please help me

    [VBA]
    rivate Sub TB1_Change()
    Dim rng As Range
    If Len(Me.TB1.Value) <> 12 Then Exit Sub
    With ThisWorkbook.Sheets("Stock")
    Set rng = .Range("A:A").Find(Me.TB1.Value, , xlValues, xlWhole)

    If Not rng Is Nothing Then
    Me.PN.Caption = rng.Offset(0, 1)
    Me.LOC.Caption = rng.Offset(0, 3)
    Me.QTY.Caption = rng.Offset(0, 2)
    Else
    MsgBox "Part Number Not Available "
    End If
    End With

    Me.TB1.SelStart = 0
    Me.TB1.SelLength = Len(Me.TB1.Value)

    End Sub
    [VBA]
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-12-2018
    Location
    india
    MS-Off Ver
    2010
    Posts
    4

    Re: Excel item scan out with barcode scanner with text strings varies

    Below code works for copy & paste. but barcode scanner not working. Barcode scanner displays only first strings

    {VB}
    Private Sub TB1_Change()
    Dim LT As Integer
    LT = Len(Me.TB1.Value)
    Dim rng As Range
    If Len(Me.TB1.Value) <> LT Then Exit Sub
    ....

    .
    .
    .

    {VBA}

    please help for barcode scanner

  3. #3
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Excel item scan out with barcode scanner with text strings varies

    I know this version I going to run into its own issues but this may get you closer to what you are looking for

    Please Login or Register  to view this content.
    Bramz

  4. #4
    Registered User
    Join Date
    05-12-2018
    Location
    india
    MS-Off Ver
    2010
    Posts
    4

    Re: Excel item scan out with barcode scanner with text strings varies

    Thanks a lot. it works fine

    if possible please help for message box data
    msg box is not popup when part number is not in list

+ 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] Excel item scan out with barcode scanner
    By vitalijus1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-13-2018, 05:25 AM
  2. Replies: 25
    Last Post: 08-03-2015, 03:32 AM
  3. Replies: 1
    Last Post: 07-10-2015, 03:15 PM
  4. Scan-in, Scan-out tool inventory with barcode scanner
    By rycr023 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2014, 11:52 AM
  5. Using a barcode scanner with excel
    By Fred45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2013, 09:23 AM
  6. image scan from scanner using excel
    By anbusathya2003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 12:54 PM
  7. Vlidating barcode scanner data entry in a text box, by If function
    By sdavardoost in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2012, 11:41 AM

Tags for this Thread

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