+ Reply to Thread
Results 1 to 12 of 12

Scanning barcodes into excel

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    69

    Scanning barcodes into excel

    I am trying to scan bar codes from invoices and if there is a match highlight the cell yellow.
    The code here works only on the active worksheet. Can this be adjusted to check all sheets in a workbook if its looking in the same column on all sheets? Also, if i scan a bar code and it matches it works perfectly. If i go back to cell A1 where i input my scan and delete the scan the next empty cell below my data highlights yellow. I assume this is because its matching the empty cell in A1 after i delete the scan? Can i prevent that?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Scanning barcodes into excel

    PHP Code: 
    The code here works only on the active worksheet 
    Yes, because you are using the event macro: Worksheet_Change which is fired when a cell's value change
    And in addition is testing if it is cell A1.
    PHP Code: 
    Can this be adjusted to check all sheets in a workbook 
    when would like to do it ?? When manually fired ??
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    01-29-2007
    Posts
    69

    Re: Scanning barcodes into excel

    Yes when i scan a barcode i would like it to match all worksheets in the book and highlight any matches yellow.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Scanning barcodes into excel

    Try next code ???!!!

    in a module put

    Please Login or Register  to view this content.
    in sheet where the bar code is recorded put
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Scanning barcodes into excel

    I think I made a missunderstanding
    See next code
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Scanning barcodes into excel

    Another one to answer to your next question ...!

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-29-2007
    Posts
    69

    Re: Scanning barcodes into excel

    Thank you very much this worked like a charm.

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Scanning barcodes into excel

    Good News, have a nice day.

  9. #9
    Registered User
    Join Date
    01-29-2007
    Posts
    69

    Re: Scanning barcodes into excel

    If i may, I have one last tweak i have asked to do.
    Currently the code below highlights one cell in column 2 that matches the scan on another sheet. I have been asked instead of matching just the cell and highlighting it can i make it highlight the whole row. In this case it would be for example row 3 columns b-k. Is that possible?
    Here is the code
    Please Login or Register  to view this content.

  10. #10
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Scanning barcodes into excel

    Change

    Please Login or Register  to view this content.
    by
    Please Login or Register  to view this content.
    NOT Tested
    Last edited by PCI; 09-23-2019 at 01:07 PM.

  11. #11
    Registered User
    Join Date
    01-29-2007
    Posts
    69

    Re: Scanning barcodes into excel

    works perfectly. Thank you again!

  12. #12
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Scanning barcodes into excel

    You're welcome and thanks for the Rep ...!

+ 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. Problem scanning barcodes
    By jrasel in forum Excel General
    Replies: 1
    Last Post: 09-05-2018, 10:21 AM
  2. Jump cells after scanning barcodes
    By odie81 in forum Excel General
    Replies: 0
    Last Post: 11-06-2013, 01:02 PM
  3. scanning barcodes to excel spreadsheet
    By pbplace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 10:03 PM
  4. scanning barcodes to find cell and put info in them
    By rkruse in forum Excel General
    Replies: 1
    Last Post: 03-28-2011, 07:31 PM
  5. Scanning barcodes into Excel
    By andyddickey in forum Excel General
    Replies: 1
    Last Post: 11-08-2007, 04:31 AM
  6. Scanning barcodes into a worksheet
    By skid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2006, 09:10 AM
  7. Scanning Barcodes into Userform
    By gti_jobert in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2006, 06:57 AM

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