Results 1 to 5 of 5

I need help to create an Inventory sheet with a running balance and use a barcode scanner.

Threaded View

  1. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: I need help to create an Inventory sheet with a running balance and use a barcode scan

    Thankyou.

    That means that we can use the change event Macro.

    Right Click on the Sheet Name at the bottom of excel and Select View Code

    Delete Everything in the module that opens

    Paste this in the module and close it.

    Good Luck

    
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column <> 13 Or Target.Cells.Count > 1 Then Exit Sub
    Application.EnableEvents = False
    On Error Resume Next
    Set Z = Columns(3).Find(Target.Value, LookIn:=xlValues, Lookat:=xlPart)
    If Z.Value = Target.Value Then
    Cells(Z.Row, 4).Value = Cells(Z.Row, 4).Value - 1
    Target.Value = ""
    Else
    MsgBox "Scanned Item Not Found", vbOKOnly
    End If
    On Error Resume Next
    Application.EnableEvents = True
    End Sub
    Last edited by mehmetcik; 08-25-2017 at 01:47 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Inventory Mangement - Barcode Scanner
    By NewYears1978 in forum Excel General
    Replies: 13
    Last Post: 09-30-2020, 12:57 AM
  2. Replies: 0
    Last Post: 03-17-2017, 10:52 AM
  3. Can Excel be used with a barcode scanner to track inventory?
    By polluxtroy12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 09:43 PM
  4. 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
  5. Replies: 0
    Last Post: 05-24-2013, 02:06 PM
  6. Using a barcode scanner to track inventory with differnent employees
    By singlec2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2012, 09:21 PM
  7. Using a barcode scanner and UPC master sheet for Inventory Control
    By jlucas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2011, 04:03 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