DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Arkadaslar denem isimli makrolu olan dosyayı tkvım isimli dosyada birleştirmek istiyorum.yanı tek dosya tkvım ı kullanmak istiyorum..
Sub ödemeleribul()
Set sh1 = Sheets("ÖDEME LİSTESİ HEPSİ")
Set sh2 = Sheets("GÜNÜ GELEN ÖDEMELERİMİZ")
sh2.Range("B5:E500").ClearContents
sat = 5
deg1 = CDate(sh2.Cells(1, "a").Value)
deg2 = CDate(sh2.Cells(1, "b").Value)
If deg1 <= deg2 Then
yer1 = CDate(sh2.Cells(1, "a").Value)
yer2 = CDate(sh2.Cells(1, "b").Value)
Else
yer2 = CDate(sh2.Cells(1, "a").Value)
yer1 = CDate(sh2.Cells(1, "b").Value)
End If
If IsDate(sh2.Cells(1, "a").Value) = True Then
If IsDate(sh2.Cells(1, "b").Value) = True Then
For i = 2 To sh1.Cells(Rows.Count, "B").End(3).Row
If CDate(yer1) <= CDate(Format(sh1.Cells(i, "b").Value, "dd.mm.yyyy")) & Chr(10) _
And CDate(yer2) >= CDate(Format(sh1.Cells(i, "b").Value, "dd.mm.yyyy")) Then
sh2.Cells(sat, "B").Value = sat - 4
sh2.Cells(sat, "C").Value = sh1.Cells(i, "B").Value
sh2.Cells(sat, "D").Value = sh1.Cells(i, "C").Value
sh2.Cells(sat, "E").Value = sh1.Cells(i, "E").Value
sat = sat + 1
End If
Next
End If
End If
End Sub
Sub ödemeleri bul kısmında hata verdi halit 3
şimdi oldu halit3 çok teşekkür ederim
saol halit3 sizin cozumunzle halletim işimi fonksiyonlu olan olmadi..bunu kullandım emegine ve beynine saglik arkadasım..