+ Reply to Thread
Results 1 to 8 of 8

Bar Code Reader To Reduce Stock Level

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    424

    Bar Code Reader To Reduce Stock Level

    Hi,

    Not sure if this is a programming question but I'm guessing it might be.

    I have a friend who wants to use a bar code reader to reduce his stock level automatically when he runs the reader over a product.

    He has everything set up in Excel so he has the stock item, and the quantity in stock would it be possible to enable the reader to work with Excel to reduce the stock figure by one every time he uses it?

    We have only spoken briefly on the phone about this and at the moment I really just want to know is it possible and if so how.

    Thanks

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Bar Code Reader To Reduce Stock Level

    It could be done with a macro. The scanner itself is pretty much just like a keyboard entry. It just types what it scans.

    It all depends on how you want to trigger the macro from the scanner input and interface with it. You could scan into a specific "entry" cell, then use the Worksheet Change event procedure to trigger the macro to lookup the item and adjust the inventory. Or have an Input Box prompt or a UserForm to receive the scanner entry instead of a specific cell.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Bar Code Reader To Reduce Stock Level

    Sorry Alpha, could swear when I started there were no replies yet... I pretty much duplicated what you said.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Bar Code Reader To Reduce Stock Level

    Quote Originally Posted by Arkadi View Post
    Sorry Alpha, could swear when I started there were no replies yet... I pretty much duplicated what you said.
    Great minds think alike.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Bar Code Reader To Reduce Stock Level

    Quote Originally Posted by AlphaFrog View Post
    Great minds think alike.
    Or is it Fools Seldom Differ? haha

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Bar Code Reader To Reduce Stock Level

    I would think a textbox with an exit event would combine great with the scanner, since they are usually set up to tab or enter after the scan. The textbox change event could then have the code to take the entered code, reduce its quantity by one, and then just activate the textbox again. A worksheet with a change event could do this fairly easily too, so long as the range is specific to avoid inadvertent changes.

  7. #7
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    424

    Re: Bar Code Reader To Reduce Stock Level

    Thanks guys, so from what you say it sounds like it might be possible. What do I need to do next? If I get the bar code reader from my friend could one of you help me with the code?

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Bar Code Reader To Reduce Stock Level

    timbo, no problem. Truth is you don't need the reader to put together the code. All the reader normally does is emulate keyboard input, followed by a suffix (typically enter or tab). Is the idea to scan the value in a cell? or do you want a textbox or a userform for the scanning? What you do need is the excel book he already created so you can work with that.

+ 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. Stock taking with barcode reader
    By zuzz1991 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2015, 10:11 PM
  2. What would be the level of each stock ?
    By paradise2sr in forum Excel General
    Replies: 1
    Last Post: 05-29-2014, 07:14 AM
  3. stock level figures
    By paul51 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-20-2014, 05:06 PM
  4. Excel 2007 : Stock level implementation
    By Sakis in forum Excel General
    Replies: 1
    Last Post: 07-01-2012, 05:21 PM
  5. Can't get VBA code to do task at worksheet level not workbook level
    By lealea1982 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2011, 10:22 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