Results 1 to 6 of 6

Barcode scanning - Adding Enter/Return/"CR" after scan

Threaded View

  1. #1
    Registered User
    Join Date
    11-14-2017
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    6

    Barcode scanning - Adding Enter/Return/"CR" after scan

    Hello,

    I need to input numbers by scanning barcodes into an excel file.
    Is there a way to "enter" down into the next cell row each time I scan one (i.e. Scan the # into B4, and the cursor will automatically go to B5 after)??
    Instead of manually pressing enter after each one.
    I tried this macro:
    Private Sub TextBox1_Change()
    Dim scaninput As String
    
    scaninput = TextBox1.Value
    If Len(scaninput) = 4 Then
    ActiveCell.Value = scaninput
    ActiveCell.Offset(1, 0).Select
    End If
    
    End Sub

    Right now, after I scan the barcode, the cursor is going into the next column automatically (B4 --> C4).

    I also know that you can get CR added on to the scan if you search for your specific scanner, but I do not have a permanent barcode scanner at this time.

    Please help me, thank you!!
    Last edited by alansidman; 11-14-2017 at 05:55 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 Formula, Enter "Name" Multiple Return Value Showing..???
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-13-2014, 12:59 AM
  2. [SOLVED] "Can't enter break mode at this time" (Issues with adding controls at runtime)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 12-16-2013, 07:10 PM
  3. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  4. Replies: 3
    Last Post: 12-31-2009, 03:44 PM
  5. "customize" the scan to always scan a letter size page
    By zinzah in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-18-2007, 09:04 AM
  6. Can I enter a "Y" and return "Yes" in the same cell? PART 2
    By rbbbbeee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2006, 07:25 AM
  7. [SOLVED] Can I enter a "Y" in a cell and have it return a "YES"? How?
    By rbbbbeee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2006, 01:20 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