Receive products and show location with Barcodes in Excel



Receive products and show location with Barcodes in Excel. Scan in the barcode of the Product and scan in the location in the warehouse.Check out my online courses www.easyexcelanswers.com/courses.html
All my courses include online support and a user manual
Let me teach you the VBA that I have learn in my five years of consulting

Let’s take the frustration out of user forms

Become an Affiliate and earn 25% on Course Sales

For more help visit my website www.easyexcelanswers.com or email me at easyexcelanswers@gmail.com.

Contact me regarding customizing this template for your needs.

Click for online Excel Consulting

I am able to provide online help on your computer at a reasonable rate.

I use a Blue condenser Microphone to record my videos, here is the link

Check out Crowdcast for creating your webinars

If you need to buy Office 2019 follow

I use Tube Buddy to help promote my videos
Check them out

Follow me on Facebook

TWEET THIS VIDEO

Follow me on twitter
easyexcelanswers

IG @barbhendersonconsulting

You can help and generate a translation to you own language

*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I’ve used or have experience with.
code
Sub access()
Dim barcode As String
Dim rownumber, lastrow As Long
Dim row As Long
Dim erow As Long
lastrow = Sheet4.Cells(Rows.count, 1).End(xlUp).row + 1
barcode = Sheet3.Cells(2, 2).Value
erow = Sheet3.Cells(Rows.count, 1).End(xlUp).row
If Sheet3.Cells(2, 2) = “” Then Exit Sub
If Sheet3.Cells(2, 2) (not equal to) “” Then
Sheet3.Activate
For row = 4 To erow
Sheet3.Cells(row, 1).Select
If Sheet3.Cells(row, 1).Value = barcode Then
Sheet3.Cells(row, 2) = barcode
Sheet4.Cells(lastrow, 1) = barcode
Sheet3.Cells(row, 3) = Date & ” ” & Time
Sheet3.Cells(row, 3).NumberFormat = “m/d/yyyy h:mm:ss AM/PM”
Sheet3.Cells(row, 4).Select
GoTo ende
End If
Next row
End If
ende:
Sheet5.Activate
Sheet5.Cells(2, 1).Value = barcode
Sheet5.Cells(2, 2).Select
End Sub

Sub leaving()
Dim barcode As String
Dim rownumber, lastrow As Long
Dim rng As Range
Dim location As String
lastrow = ActiveSheet.Cells(Rows.count, 1).End(xlUp).row + 1
barcode = Sheet4.Cells(2, 2).Value
If Sheet4.Cells(2, 2) (not equal to) “” Then
Set rng = Sheet4.Columns(“a:a”).Find(What:=barcode, _
LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
rownumber = rng.row

Sheet4.Cells(rownumber, 3) = Date & ” ” & Time
Sheet4.Cells(rownumber, 3).NumberFormat = “m/d/yyyy h:mm:ss AM/PM”
Sheet4.Cells(2, 2).ClearContents
End If
End Sub

Sub location()
Dim location As String
Dim rng, rng1 As Range
Dim rownumber, rnum As Long
location = Sheet5.Cells(2, 2).Value
barcode = Sheet5.Cells(2, 1).Value
Sheet5.Cells(2, 1).Value = barcode
If Sheet5.Cells(2, 2) (not equal to) “” Then
Sheet3.Activate
Set rng = Sheet3.Range(“b4:b10000”).Find(What:=barcode, _
LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
rownumber = rng.row
Sheet3.Cells(rownumber, 4).Value = location
Sheet4.Activate
Set rng1 = Sheet4.Columns(“a:a”).Find(What:=barcode, _
LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
rnum = rng1.row
Sheet4.Cells(rnum, 2).Value = location
Sheet5.Cells(2, 2).ClearContents
Sheet5.Cells(2, 1).ClearContents
GoTo ende
End If
ende:
Sheet3.Activate
Sheet3.Cells(2, 2).Select
Sheet3.Cells(2, 2).ClearContents
Application.Goto Reference:=Sheet3.Range(“B2”)
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)

If Not Intersect(Target, Me.Range(“B2”)) Is Nothing Then

Call access
Application.EnableEvents = True
End If

End Sub

Watch more new videos about Excel Office | Synthesized by Mindovermetal English

5/5 - (1 bình chọn)

Bài viết liên quan

Theo dõi
Thông báo của
guest
0 Comments
Phản hồi nội tuyến
Xem tất cả bình luận