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
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
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.
It is different,
I did go back and give a big Thanks to Rollis?
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.
I see, I apologize still learning Thank you
Just remember the help you get is given completely for free - so acknowledge all those who offer it.![]()
Done! Thank you for bringing this to my attention.
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.
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
This is awesome Thank You So Much!!!
Glad having been of some help here too.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks