DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
Dim Bul As Range
If Intersect(Target, [C:C]) Is Nothing Then Exit Sub
If Target.Row < 3 Then Exit Sub
If Target.Value = "" Then
Cells(Target.Row, "B") = ""
Else
Set Bul = Range("IV:IV").Find(Target.Value, LookIn:=xlValues, LookAt:=xlWhole)
If Not Bul Is Nothing Then
Cells(Target.Row, "B") = Cells(Bul.Row, "IU")
Else
Cells(Target.Row, "B") = ""
End If
End If
Son:
End Sub
Sayın hocam Aynı işlemin tersini yapmak istedim Ama bir türlü beceremedim.
Yani (B) hücresine Barkod numarasını yazınca (c) hücresine Ürün adını otomatik yazsın.
İlginize şimdiden teşekkür ederim.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ts
ts = Target.Row
If Intersect(Target, Range("B3:B65536")) Is Nothing Then Exit Sub
Cells(ts, "C") = WorksheetFunction.VLookup(ts, _
Range("IU3:IV65536"), 2, 0)
End Sub
Sayın; İhsan bey İlginize ve alakanıza çok teşekkür ederim. ALLAH RAZI OLSUN.
(Makro hatalı) Barkod numarası aynı, fakat Stok isimlerini sıradan yazıyor hocam.
Ekte açıklamasını yaptım.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ts
ts = Target.Row 'hareket gören satır
If Intersect(Target, Range("B3:B65536")) Is Nothing Then Exit Sub 'hangi aralıkta çalışmasını istiyorsak
Cells(ts, "C") = WorksheetFunction.VLookup(Cells(ts, "B"), _
Range("IU3:IV65536"), 2, 0) ' C sütuna düşeyara / Vlookup ile veri alma B sütununa göre
End Sub
Sayın İhsan Bey,
ÇOK TEŞEKKÜR EDERİM. ALLAH RAZI OLSUN. SAĞOLUN.
Şu sözüde unutmamak gerekir.
Bana bir harf öğretenin 40 yıl kölesi olurum. (HZ.ALİ).