İyi Akşamlar;
Aşağıdaki kodlarla "anatablo" isimli çalışma sayfasından "liste" sayfasındaki A3 hücresindeki bilgiye göre veriler gelmektedir.
Ancak, "liste" sayfasındaki A sutundaki (A1:A300) isimlerin yazıldığı satırların karşısndaki B C D sutunlarına veri almak istiyorum.
On Error Resume Next
If Intersect(Target, [A3]) Is Nothing Then Exit Sub
If Target.Value = Empty Then Exit Sub
Set s1 = Sheets("liste")
Set s2 = Sheets("anatablo")
For Each bul In s2.Range("B5:B5000")
If bul = Target.Value Then sat = bul.Row
Next
If sat = "" Then
MsgBox "ARADIĞINIZ BİLGİ BULUNAMADI.", vbInformation, "BİLGİ"
Exit Sub
End If
s1.Cells(8, "B").Value = s2.Cells(sat, "C").Value
s1.Cells(9, "B").Value = s2.Cells(sat, "D").Value
Set s1 = Nothing
Set s2 = Nothing
Aşağıdaki kodlarla "anatablo" isimli çalışma sayfasından "liste" sayfasındaki A3 hücresindeki bilgiye göre veriler gelmektedir.
Ancak, "liste" sayfasındaki A sutundaki (A1:A300) isimlerin yazıldığı satırların karşısndaki B C D sutunlarına veri almak istiyorum.
On Error Resume Next
If Intersect(Target, [A3]) Is Nothing Then Exit Sub
If Target.Value = Empty Then Exit Sub
Set s1 = Sheets("liste")
Set s2 = Sheets("anatablo")
For Each bul In s2.Range("B5:B5000")
If bul = Target.Value Then sat = bul.Row
Next
If sat = "" Then
MsgBox "ARADIĞINIZ BİLGİ BULUNAMADI.", vbInformation, "BİLGİ"
Exit Sub
End If
s1.Cells(8, "B").Value = s2.Cells(sat, "C").Value
s1.Cells(9, "B").Value = s2.Cells(sat, "D").Value
Set s1 = Nothing
Set s2 = Nothing
