+ Reply to Thread
Results 1 to 4 of 4

Urgent help needed with VBA in excel for barcode scanner worksheet

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Virginia
    MS-Off Ver
    2013
    Posts
    28

    Urgent help needed with VBA in excel for barcode scanner worksheet

    Here is a screenshot of my current excel spreadsheet:

    Orig.PNG

    Here is a copy of the code I am currently using:

    Please Login or Register  to view this content.
    Currently the way the excel sheet works: if you enter a value into column A and it is an original piece of data, it will add a date/time stamp onto the row in column C. If you repeat that same piece of data again further down the column, it will recognize that it is a duplicate and add a "time out" in column D on the row that this same piece of data was already entered. It will also delete that whole row of the duplicate too.


    WHAT I WOULD LIKE MY EXCEL SHEET TO DO:


    This is how I would like my excel sheet set up:

    new.PNG

    Columns A and B would be data input either via keyboard or barcode scanner. Column C would be "Column A/Column B" as to make a unique number combination. Column A is employee ID number and Column B is Manufacturing Order number. The whole goal of having that Column C is so that you have a unique number tying that employee to a certain job. The main reason is that you can have several employees working on the same MO, but only one MO can be worked by any given employee at a time.

    I have found what I thought to be a solution by entering an excel forumla to calculate that "Column A/Column B" but apparently excel forumlas negate the VBA code of the same cell. So I need VBA to automatically calculate column C after BOTH column A and column B have been entered, and this leading to the time stamp being placed.


    Hopefully I explained this well enough, and any help would be greatly appreciated! Thanks!

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Urgent help needed with VBA in excel for barcode scanner worksheet

    try the below putting the concatenated unique number in column A (and therefore the two fields to the right in B and C

    Please Login or Register  to view this content.
    Last edited by scottiex; 01-28-2015 at 08:34 PM.

  3. #3
    Registered User
    Join Date
    01-28-2015
    Location
    Virginia
    MS-Off Ver
    2013
    Posts
    28

    Re: Urgent help needed with VBA in excel for barcode scanner worksheet

    Some reason that didn't work for me. Did it for you?

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Urgent help needed with VBA in excel for barcode scanner worksheet

    I got this result from some test data.

    1231 1231
    12341234 1234 1234 3/02/2015 15:29 3/02/2015 15:30
    1234234 1234 234 3/02/2015 15:30 3/02/2015 15:30
    12222 12222

    Ignoring the fact that the formatting is messed up by pasting it in here, I think it is more or less what you want.

    it assumes all your numbers are less than 7 digits but that the two numbers together will be more than 6 digits.
    Last edited by scottiex; 02-02-2015 at 10:36 PM.

+ 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 Scanner - The cursor jumps a row in a Microsoft Excel worksheet.
    By Looser008 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2014, 10:37 PM
  2. Using a barcode scanner with excel
    By Fred45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2013, 09:23 AM
  3. Trying to track inventory using a barcode scanner in Excel
    By ernht38 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2013, 08:16 AM
  4. Barcode scanner in excel
    By amir8000 in forum Excel General
    Replies: 1
    Last Post: 06-03-2013, 08:30 PM
  5. Interfacing MS Excel with a BarCode Scanner
    By Big Jake in forum Excel General
    Replies: 1
    Last Post: 08-02-2009, 05:11 PM

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