- Katılım
- 11 Mayıs 2005
- Mesajlar
- 167
- Excel Vers. ve Dili
- office 2003 tr & eng.
office 2007 tr & eng.
Selamlar,
Sub bos_satir_sil2()
Application.ScreenUpdating = False
Dim i As Integer
t = ActiveSheet.UsedRange.Rows.Count
For i = t To 1 Step -1
If IsEmpty(Cells(i, 5)) Then
Rows(i).Delete Shift:=xlUp
End If
Next i
Application.ScreenUpdating = True
End Sub
Makrosunu çalıştırdığımda, hata veriyor ve For i = t To 1 Step -1 satırını seçiyor.
Bu hatayı nasıl düzeltebilirim.
Yapmak istediğim;
E Sutununda boş olan hücrelere ait satırları silmek.
Sub bos_satir_sil2()
Application.ScreenUpdating = False
Dim i As Integer
t = ActiveSheet.UsedRange.Rows.Count
For i = t To 1 Step -1
If IsEmpty(Cells(i, 5)) Then
Rows(i).Delete Shift:=xlUp
End If
Next i
Application.ScreenUpdating = True
End Sub
Makrosunu çalıştırdığımda, hata veriyor ve For i = t To 1 Step -1 satırını seçiyor.
Bu hatayı nasıl düzeltebilirim.
Yapmak istediğim;
E Sutununda boş olan hücrelere ait satırları silmek.
