DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Ek'teki dosyada detaylı açıklama mevcuttur.
Teşekkürler..
Sub DoluOlaniAktar()
Dim i As Long, sat As Long
Application.ScreenUpdating = False
Sheets("Bandrol").Select
sat = 2
With Sheets("Ana Sayfa")
Range("A2:C" & Rows.Count).ClearContents
For i = 2 To .Cells(Rows.Count, "A").End(xlUp).Row
If .Cells(i, "C") <> "" Then
Cells(sat, "A") = sat - 1
Cells(sat, "B") = .Cells(i, "B")
Cells(sat, "C") = .Cells(i, "C")
sat = sat + 1
End If
Next i
End With
Application.ScreenUpdating = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("B2:B65536")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
On Error GoTo Son
Application.EnableEvents = False
If Target = "" Then
Cells(Target.Row, "A").ClearContents
Cells(Target.Row, "C").ClearContents
Cells(Target.Row, "D").ClearContents
Cells(Target.Row, "E").ClearContents
Cells(Target.Row, "F").ClearContents
Cells(Target.Row, "G").ClearContents
End If
Son: Application.EnableEvents = True
End Sub
Sub Bandrol()
Dim i As Long, sat As Long
Application.ScreenUpdating = False
Sheets("Bandrol").Select
sat = 3
With Sheets("Ana Sayfa")
[COLOR="Red"]Range("A3:F" & Rows.Count).ClearContents[/COLOR]
For i = 3 To .Cells(Rows.Count, "A").End(xlUp).Row
If .Cells(i, "F") <> "" Then
Cells(sat, "A") = sat - 2
Cells(sat, "B") = .Cells(i, "B")
Cells(sat, "C") = .Cells(i, "F")
sat = sat + 1
End If
Next i
End With
Application.ScreenUpdating = True
End Sub