+ Reply to Thread
Results 1 to 6 of 6

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

  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:
    Please Login or Register  to view this content.

    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.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

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

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,143

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

    Why macro, if each scanner has, in its own configuration, option to set the enter/behavior after scanning ?
    You should scan the appropriate barcode attached originally to it.
    It is in the manual or on a separate credit card size form with a description.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

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

    Not sure why it is moving 1 column over instead of 1 row down, the line of code you have to do this is correct.
    This line
    Please Login or Register  to view this content.
    tells it where to move after the scan is entered into the cell.
    The 1 is to move 1 row down, the 0 is to move 0 columns over.
    As for adding "CR" after the scan, do you mean to add it to the end of the scanned numbers, or in a cell next to it?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,143

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

    'Enter' down:
    Please Login or Register  to view this content.
    On UserForm module:
    Please Login or Register  to view this content.
    Last edited by mjr veverka; 11-14-2017 at 06:28 PM.

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

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

    Because I don't have a permanent scanner, as I said above.

+ 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] 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