+ Reply to Thread
Results 1 to 4 of 4

Auto print from barcode scanner macro

  1. #1
    Registered User
    Join Date
    02-04-2010
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    1

    Auto print from barcode scanner macro

    Hi,

    Situation: I have a barcode scanner hooked up to a computer running excel and a label printer. When I scan a barcode (which contains a part number) it looks up the description in the label template. I then have to manually hit print to print the label.

    What I want to happen is for the label to print automatically after the part number has been scanned into the cell to automate the process. I need a macro to run automatically and so far I have not been successful and I was hoping that somebody could help with what I require.

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Auto print from barcode scanner macro

    You haven't provided a lot of information, however this should be quite easy, but it would help to have more info.

    I assume from your post that all you do is scan, then press print. So if that is the case, all you need to do is add this code into the module for the sheet that needs to be printed

    Please Login or Register  to view this content.
    However be aware, that this will print when anything changes on the sheet in question. To make it less of a blunt instrument, I would need to know more about the spreadsheet. eg what is the cell name the captures the bar code?

    Please Login or Register  to view this content.
    If you change the word "myCell in the code above, with the cell address that captures the bar code, then it will only print when that cell changes.

  3. #3
    Registered User
    Join Date
    08-25-2017
    Location
    Malaysia
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Auto print from barcode scanner macro

    Hi i know it is long long long time post .
    but i don't think him still trying on in.
    but i have actual same case with him.
    i was try the first code you give. so i need lock some of cell too reduce the human error.
    What if my cell was D3 cell how should i do ? is it just i change the myCell to D3 or i change the D3 to name myCell
    thanks

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Auto print from barcode scanner macro

    leyzyiz,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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