- Katılım
- 2 Şubat 2007
- Mesajlar
- 194
- Excel Vers. ve Dili
- Office 2007 Tr
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub madde_no_tarih_getir_2()
Set s1 = Sheets("KONTROL")
Set s2 = Sheets("muhasebe")
For i = 2 To s1.[a65536].End(3).Row
If s1.Cells(i, "a") <> "" Then
Set m = s2.Range("g2:g65536").Find(s1.Cells(i, "a").Value, LookAt:=xlWhole)
If Not m Is Nothing Then
s1.Cells(i, "j").Value = m.Offset(0, -5)
s1.Cells(i, "k").Value = m.Offset(0, -3)
End If
End If
Next i
End Sub
Sub madde_no_tarih_getir_2()
Set s1 = Sheets("KONTROL")
Set s2 = Sheets("muhasebe")
For i = 2 To s1.[a65536].End(3).Row
For j = 3 To s2.[f65536].End(3).Row
If CDate(s1.Cells(i, "a")) >= CDate(s2.Cells(j, "f")) And CDate(s1.Cells(i, "a")) <= CDate(s2.Cells(j, "g")) Then
s1.Cells(i, "j") = s2.Cells(j, "a")
s1.Cells(i, "k") = s2.Cells(j, "c")
GoTo json
End If
Next j
json:
Next i
End Sub