DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub aktar()
Application.ScreenUpdating = False
For t = 3 To 72
If Cells(t, "B") = "" And Cells(t, "C") <> "" Then Cells(t, "E") = Cells(t, "C")
If Cells(t, "B") <> "" And Cells(t, "C") Then Cells(t, "E") = Cells(t, "B")
Next
Range("B3:C72").Select
Selection.ClearContents
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Sub aktar()
Application.ScreenUpdating = False
For t = 3 To 72
If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H")
If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G")
Next
For t = 80 To 135
If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H")
If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G")
Next
Range("G3:I11").Select
Selection.ClearContents
Range("G13:I40").Select
Selection.ClearContents
Range("G42:I72").Select
Selection.ClearContents
Range("G80:I135").Select
Selection.ClearContents
Range("R1").Select
Application.ScreenUpdating = True
End Sub
Tablonuza göre güncelledim. Aşağıdaki şekilde deneyiniz.
Kod:Sub aktar() Application.ScreenUpdating = False For t = 3 To 72 If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H") If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G") Next For t = 80 To 135 If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H") If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G") Next Range("G3:I11").Select Selection.ClearContents Range("G13:I40").Select Selection.ClearContents Range("G42:I72").Select Selection.ClearContents Range("G80:I135").Select Selection.ClearContents Range("R1").Select Application.ScreenUpdating = True End Sub
Orijinal dosyanız buysa problemsiz çalışıyor.
Orijinal dosyanız buysa problemsiz çalışıyor.
Orijinal dosyanız buysa problemsiz çalışıyor.
Sub aktar()
Application.ScreenUpdating = False
For t = 3 To 72
If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H")
If Cells(t, "G") <> "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "G")
Next
For t = 80 To 135
If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H")
If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G")
Next
Range("G3:I11").Select
Selection.ClearContents
Range("G13:I40").Select
Selection.ClearContents
Range("G42:I72").Select
Selection.ClearContents
Range("G80:I135").Select
Selection.ClearContents
Range("R1").Select
Application.ScreenUpdating = True
End Sub
Kodda hata yapmışız. Sanırım şimdi probleminiz çözülecek.
Kod:Sub aktar() Application.ScreenUpdating = False For t = 3 To 72 If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H") If Cells(t, "G") <> "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "G") Next For t = 80 To 135 If Cells(t, "G") = "" And Cells(t, "H") <> "" Then Cells(t, "J") = Cells(t, "H") If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G") Next Range("G3:I11").Select Selection.ClearContents Range("G13:I40").Select Selection.ClearContents Range("G42:I72").Select Selection.ClearContents Range("G80:I135").Select Selection.ClearContents Range("R1").Select Application.ScreenUpdating = True End Sub
And ten sonra gelen koşula bir koşul eklememişsiniz.Kod:If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G")
Benim gördüğüm budur.
And ten sonra gelen koşula bir koşul eklememişsiniz.Kod:If Cells(t, "G") <> "" And Cells(t, "H") Then Cells(t, "J") = Cells(t, "G")
Benim gördüğüm budur.
İlk şartta <> "" kullanmışsınız. 2nci için bir şart kullanmamışsınız.
Hata vermediğine göre bir mantık hatası yapmış olabilirsiniz.