+ Reply to Thread
Results 1 to 4 of 4

Bar code scanning

  1. #1
    Registered User
    Join Date
    11-28-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    73

    Bar code scanning

    I am using a scanner to import the numbers associated with bar codes. The numbers are always the same length at 20 characters. When the bar codes are scanned this has to be followed by hitting the enter key to move to the next row. Scan, enter, scan, enter......
    This becomes repetitive and missing the "enter" key will result in 2 entries on one line. On average 20,000 of these are scanned in a day.

    What I would like to do is this:
    I would like to just scan the item and have the highlight move to the next row thus eliminating the need to hit the enter key. Can this be done? I have tried simple macros to no effect and have struck out trying to limit the amount of data the field will accept.

    Any thoughts, suggestions or help would be greatly appreciated.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Bar code scanning

    Then try something like this in the sheet module.

    This assumes it's column a that stores the data

    Please Login or Register  to view this content.
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    11-28-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Bar code scanning

    Quote Originally Posted by Steffen Thomsen View Post
    Then try something like this in the sheet module.

    This assumes it's column a that stores the data

    Please Login or Register  to view this content.
    Let's assume that I am a complete xcel noob. I have tried copying and pasting this into a module and have had a complete fail so I am going to ask for you to go the extra mile and walk me through this. Don't think I haven't googled this to avoid the humiliation and found some good tutorials but I am falling flat.

  4. #4
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Bar code scanning



    You insert this in the sheet module.
    If you open the workbook, right click on the sheet tab where the data is stored, then press "View code" in the menu that appears, here you insert the code.

    When some data is entered into column a, it automatically selects the next cell when data is inserted into a cell, try messing around with it and test if it does as required.

    Here's the revised code

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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