- Katılım
- 5 Eylül 2007
- Mesajlar
- 1,247
- Excel Vers. ve Dili
- ofis 2010
iyi akşamlar;
ve
bu iki makroda da G= M,T,O ise işlem yapmasın seçeneği ilave etmek istiyorum. Teşekkürler.
Kod:
Sub KODMOD_1()
Application.ScreenUpdating = False
For i = 2 To Cells(Rows.Count, "C").End(3).Row
If Cells(i, "E") = "" And Cells(i, "F") <> "" And Cells(i, "G") = "" Then
Cells(i, "G") = Cells(i + 1, "G")
End If
Next i
i = Empty
For i = Cells(Rows.Count, "C").End(3).Row To 2 Step -1
If Cells(i, "E") <> "" And Cells(i, "F") = "" And Cells(i, "G") = "" Then
Cells(i, "G") = Cells(i + 1, "G")
End If
Next i
i = Empty
Application.ScreenUpdating = True
End Sub
Kod:
Sub KODMOD_2()
Application.ScreenUpdating = False: Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
For i = 2 To Cells(Rows.Count, "C").End(3).Row
If Cells(i, "E") = "" And Cells(i, "F") <> "" And Cells(i, "G") = "" Then
Cells(i, "G") = Cells(i - 1, "G")
End If
Next i
i = Empty
For i = Cells(Rows.Count, "C").End(3).Row To 2 Step -1
If Cells(i, "E") <> "" And Cells(i, "F") = "" And Cells(i, "G") = "" Then
Cells(i, "G") = Cells(i - 1, "G")
End If
Next i
i = Empty
Application.ScreenUpdating = True
Application.ScreenUpdating = True: Application.Calculation = xlCalculationAutomatic
End Sub
bu iki makroda da G= M,T,O ise işlem yapmasın seçeneği ilave etmek istiyorum. Teşekkürler.
