- Katılım
- 11 Ağustos 2008
- Mesajlar
- 5,891
- Excel Vers. ve Dili
- Office 2013 Tr - Win10 x64
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
s3.Cells(4 + c, 2) = s2.Cells(b, 2)
s3.Cells(4 + c, 3) = s2.Cells(b, 3)
s3.Cells(4 + c, 4) = s1.Cells(a, 3)
s3.Cells(4 + c, 5) = s2.Cells(b, 5)
s3.Cells(4 + c, 6) = s2.Cells(b, 6)
s3.Cells(4 + c, 7) = s2.Cells(b, 7)
s3.Cells(4 + c, 8) = s2.Cells(b, 10)
s3.Cells(4 + c, 9) = s2.Cells(b, 11)
Sub son_sayfasını_olustur()
iki = MsgBox(" Gönderi Listesini Oluşturmak İstiyor musunuz? ", vbYesNo, " Hüseyin Çoban ")
If iki = vbNo Then Exit Sub
Application.ScreenUpdating = False
Sheets("son").Range("A5:ı65536").ClearContents
Call cari_kodları_eşleştir
Call diger_bilgileri_yaz
Application.ScreenUpdating = True
End Sub
Sub cari_kodları_eşleştir()
On Error Resume Next
Set s1 = Sheets("MAİL LİSTESİ")
Set s2 = Sheets("FINT23")
Set s3 = Sheets("SON")
x = WorksheetFunction.CountA(s1.Range("A:a"))
Z = WorksheetFunction.CountA(s2.Range("b:b"))
For Each hucre In s1.Range("A2:a" & x)
Set bul = s2.Range("b2:b" & Z).Find(hucre)
If Not bul Is Nothing Then
c = c + 1
b = bul.Row
For i = 2 To 2
s3.Cells(4 + c, i) = s2.Cells(b, i)
Next
End If
Next
End Sub
Sub diger_bilgileri_yaz()
Dim U As Long
For U = 5 To [B65536].End(3).Row
If WorksheetFunction.CountIf(Sheets("fınt23").Range("B:B"), Cells(U, "B")) > 0 Then
Cells(U, "C") = WorksheetFunction.VLookup(Cells(U, "B"), Sheets("FINT23").Range("B:K"), 2, 0)
Else
End If
If WorksheetFunction.CountIf(Sheets("MAİL LİSTESİ").Range("A:A"), Cells(U, "B")) > 0 Then
Cells(U, "D") = WorksheetFunction.VLookup(Cells(U, "B"), Sheets("MAİL LİSTESİ").Range("A:C"), 3, 0)
Else
End If
If WorksheetFunction.CountIf(Sheets("fınt23").Range("B:B"), Cells(U, "B")) > 0 Then
Cells(U, "E") = WorksheetFunction.VLookup(Cells(U, "B"), Sheets("FINT23").Range("B:K"), 4, 0)
Else
End If
If WorksheetFunction.CountIf(Sheets("fınt23").Range("B:B"), Cells(U, "B")) > 0 Then
Cells(U, "F") = WorksheetFunction.VLookup(Cells(U, "B"), Sheets("FINT23").Range("B:K"), 5, 0)
Else
End If
If WorksheetFunction.CountIf(Sheets("fınt23").Range("B:B"), Cells(U, "B")) > 0 Then
Cells(U, "G") = WorksheetFunction.VLookup(Cells(U, "B"), Sheets("FINT23").Range("B:K"), 6, 0)
Else
End If
If WorksheetFunction.CountIf(Sheets("fınt23").Range("B:B"), Cells(U, "B")) > 0 Then
Cells(U, "H") = WorksheetFunction.VLookup(Cells(U, "B"), Sheets("FINT23").Range("B:K"), 9, 0)
Else
End If
If WorksheetFunction.CountIf(Sheets("fınt23").Range("B:B"), Cells(U, "B")) > 0 Then
Cells(U, "I") = WorksheetFunction.VLookup(Cells(U, "B"), Sheets("FINT23").Range("B:K"), 10, 0)
Else
End If
Next
End Sub