+ Reply to Thread
Results 1 to 11 of 11

Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time stamp

Hybrid View

  1. #1
    Registered User
    Join Date
    12-22-2020
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time stamp

    Good Morning all,
    Looking to add a receipt log on another sheet of what barcode was scanned, where it was scanned to with a date and time.

    I appreciate any help

    Thank You
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    Does this differ from your Christmas Day thread?

    https://www.excelforum.com/excel-pro...-subtract.html

    If so, then you need to go back there and say thanks for the help. If not, this thread will be closed and you can continue there. Please advise.

    Please update your forum profile: 10 is NOT an Office version.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-22-2020
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    It is different,
    I did go back and give a big Thanks to Rollis?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    No - you didn't sign the thread off or mark it solved. Maybe you gave Rollis rep, but you ought to thank both members who responded in the thread itself.

  5. #5
    Registered User
    Join Date
    12-22-2020
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    I see, I apologize still learning Thank you

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    Just remember the help you get is given completely for free - so acknowledge all those who offer it.

  7. #7
    Registered User
    Join Date
    12-22-2020
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    Done! Thank you for bringing this to my attention.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    Can you please manually mock up a few rows of data showing what you want. I'm not clear where it should be coming from.

  9. #9
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    Hello to all.
    @Robert7474, since you didn't explain much of how what you asked for was to be done, in the columns Received (C) and Shipped (B) I placed a "1". Feel free to change this with whatever you prefer. Here's the updated code:
    Option Explicit
    
    Private Sub Worksheet_Change(ByVal Target As Range)
    
        Dim item   As Variant
        Dim srch   As String
        Dim nrow   As Long                            '<= added
    
        If Target.Cells.Count > 1 Or Not Target.Address = "$B$1" And Not Target.Address = "$B$2" Then Exit Sub
        If Target.Value <> "" Then
            Application.EnableEvents = False
            srch = Target.Address
            Set item = Range("A6", Range("A" & Rows.Count).End(xlUp)).Find(Range(srch).Value, LookAt:=xlWhole)
            If item Is Nothing Then
                MsgBox Target & " is not inventoried."
                GoTo exitcode
            Else
                '------------ changed -------------
                With Worksheets("Scanned Log")
                    nrow = .Range("D" & .Rows.Count).End(xlUp).Row + 1
                    .Range("A" & nrow) = Target.Value
                    .Range("D" & nrow) = Now()
                    Select Case srch
                        Case "$B$1"
                            item.Offset(0, 8).Value = item.Offset(0, 8).Value + 1
                            .Range("C" & nrow) = "1"
                        Case "$B$2"
                            item.Offset(0, 8).Value = item.Offset(0, 8).Value - 1
                            .Range("B" & nrow) = "1"
                    End Select
                End With
                '----------------------------------
            End If
    exitcode:
            Set item = Nothing
            Range(srch) = ""
            Range(srch).Select
            Application.EnableEvents = True
        End If
        
    End Sub

  10. #10
    Registered User
    Join Date
    12-22-2020
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    8

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    This is awesome Thank You So Much!!!

  11. #11
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Want to add a log for what barcode was scanned ,what scanned to ship/rec and a time st

    Glad having been of some help here too .

+ 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. Replies: 4
    Last Post: 08-24-2022, 12:27 AM
  2. Matching barcode numbers when scanned
    By markkkie in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-16-2020, 02:59 AM
  3. [SOLVED] Finding a match after Barcode scanned
    By creekybones in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-17-2019, 04:42 PM
  4. Barcodes sometimes cant be bleeped/scanned using barcode gun
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2015, 09:09 AM
  5. Vba to enter scanned Data into Column Depending on what is scanned.
    By JRidge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2014, 08:20 AM
  6. Update spreadsheet when a barcode is scanned
    By fuzzyexcel in forum Excel General
    Replies: 0
    Last Post: 11-06-2014, 04:51 PM
  7. Adding Date in Column When Barcode is Scanned
    By zwarner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2013, 10:59 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