DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub ListBox1_Click() kodlarını silin yerine aşağıdakileri kopyalayın.Private Sub ListBox1_Click()
Dim n As String
a = ActiveCell.Row
ActiveCell = ListBox1.Value
ListBox1.Visible = False
ActiveCell.Offset(0, 1).Select
If WorksheetFunction.CountBlank(Range("A" & a & ":T" & a)) > 0 Then
MsgBox "Lütfen tüm alanları doldurunuz!"
Set c = Range("A" & a & ":T" & a).Find("")
If Not c Is Nothing Then c.Select
Else
For i = 1 To Sheets.Count
If Sheets(i).Name = Cells(a, "S") Then
yeni = Sheets(i).Cells(Rows.Count, "A").End(3).Row + 1
Range("A" & a & ":T" & a).Copy Sheets(i).Cells(yeni, "A")
If Cells(a, "S") = "ONAY" Then
yeni = Sheets("ÖDEME").Cells(Rows.Count, "A").End(3).Row + 1
Range("A" & a & ":T" & a).Copy Sheets("ÖDEME").Cells(yeni, "A")
n = " ve ÖDEME "
End If
End If
Next
End If
MsgBox a - 1 & ". veri " & Cells(a, "S") & n & " sayfasına aktarıldı.", vbInformation
If Cells(a, "S") <> "ONAY" Then
ActiveCell.EntireRow.Delete
Cells(a + 1, "U").Select
End If
End Sub
Private Sub ListBox1_Click()
Dim n As String
a = ActiveCell.Row
ActiveCell = ListBox1.Value
ListBox1.Visible = False
ActiveCell.Offset(0, 1).Select
If WorksheetFunction.CountBlank(Range("A" & a & ":U" & a)) > 0 Then
MsgBox "Lütfen tüm alanları doldurunuz!"
Set c = Range("A" & a & ":U" & a).Find("")
If Not c Is Nothing Then c.Select
Else
For i = 1 To Sheets.Count
If Sheets(i).Name = Cells(a, "T") Then
yeni = Sheets(i).Cells(Rows.Count, "A").End(3).Row + 1
Range("A" & a & ":U" & a).Copy Sheets(i).Cells(yeni, "A")
If Cells(a, "T") = "SONLANDI" And IsDate(Cells(a, "N")) Then
yeni = Sheets("ÖDEME").Cells(Rows.Count, "A").End(3).Row + 1
Range("A" & a & ":U" & a).Copy Sheets("ÖDEME").Cells(yeni, "A")
n = " ve ÖDEME "
End If
End If
Next
End If
MsgBox a - 1 & ". veri " & Cells(a, "T") & n & " sayfasına aktarıldı.", vbInformation
If Cells(a, "S") <> "ONAY" Then
ActiveCell.EntireRow.Delete
Cells(a + 1, "U").Select
End If
End Sub

Private Sub ListBox1_Click()
Dim n As String
a = ActiveCell.Row
ActiveCell = ListBox1.Value
ListBox1.Visible = False
ActiveCell.Offset(0, 1).Select
If WorksheetFunction.CountBlank(Range("A" & a & ":U" & a)) > 0 Then
MsgBox "Lütfen tüm alanları doldurunuz!"
Set c = Range("A" & a & ":U" & a).Find("")
If Not c Is Nothing Then c.Select
exit sub
Else
For i = 1 To Sheets.Count
If Sheets(i).Name = Cells(a, "T") Then
yeni = Sheets(i).Cells(Rows.Count, "A").End(3).Row + 1
Range("A" & a & ":U" & a).Copy Sheets(i).Cells(yeni, "A")
If Cells(a, "T") = "SONLANDI" And IsDate(Cells(a, "N")) Then
yeni = Sheets("ÖDEME").Cells(Rows.Count, "A").End(3).Row + 1
Range("A" & a & ":U" & a).Copy Sheets("ÖDEME").Cells(yeni, "A")
n = " ve ÖDEME "
End If
End If
Next
End If
MsgBox a - 1 & ". veri " & Cells(a, "T") & n & " sayfasına aktarıldı.", vbInformation
If Cells(a, "S") <> "ONAY" Then
ActiveCell.EntireRow.Delete
Cells(a + 1, "U").Select
End If
End Sub
Merhaba üstadlar bu koda nasıl bir ek yapılmalı yada revize edilmeliki ONAY sayfasına aktar dediğim de ÖDEME sayfasına aktarma yaparken RET sayfasına aktar dediğimde de ÖDEME sayfasına aktarma yapabilsin. Yani ONAY Sayfasından başka sayfayı seçtiğimde seçtiğim sayfa ile birlikte ÖDEME sayfasına da aktarabilsinMerhaba.
Private Sub ListBox1_Click()kodlarını silin yerine aşağıdakileri kopyalayın.
Kod:Private Sub ListBox1_Click() Dim n As String a = ActiveCell.Row ActiveCell = ListBox1.Value ListBox1.Visible = False ActiveCell.Offset(0, 1).Select If WorksheetFunction.CountBlank(Range("A" & a & ":T" & a)) > 0 Then MsgBox "Lütfen tüm alanları doldurunuz!" Set c = Range("A" & a & ":T" & a).Find("") If Not c Is Nothing Then c.Select Else For i = 1 To Sheets.Count If Sheets(i).Name = Cells(a, "S") Then yeni = Sheets(i).Cells(Rows.Count, "A").End(3).Row + 1 Range("A" & a & ":T" & a).Copy Sheets(i).Cells(yeni, "A") If Cells(a, "S") = "ONAY" Then yeni = Sheets("ÖDEME").Cells(Rows.Count, "A").End(3).Row + 1 Range("A" & a & ":T" & a).Copy Sheets("ÖDEME").Cells(yeni, "A") n = " ve ÖDEME " End If End If Next End If MsgBox a - 1 & ". veri " & Cells(a, "S") & n & " sayfasına aktarıldı.", vbInformation If Cells(a, "S") <> "ONAY" Then ActiveCell.EntireRow.Delete Cells(a + 1, "U").Select End If End Sub