DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Test()
noA = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To noA Step 2
Range("A" & i) = "x"
Next
For i = noA To 1 Step -1
If Range("A" & i) = "x" Then Rows(i).Delete Shift:=xlUp
Next
End Sub
[SIZE="2"]Sub Emre()
son& = Range("A" & Rows.Count).End(3).Row
For i& = son To 1 Step -1
If i Mod 2 Then
Rows(i).Delete Shift:=xlUp
End If
Next i
i = Empty: son = Empty
End Sub[/SIZE]
[B]Sub TEK_SIL()[/B]
son = [A1].SpecialCells(xlCellTypeLastCell).Row
If WorksheetFunction.IsOdd(son) = False Then son = son - 1
For sat = son To 1 Step -2
Rows(sat).Delete Shift:=xlUp
Next
[B]End Sub[/B]
[SIZE="2"][SIZE="2"]Sub Emre()
For i& = Cells(Rows.Count, "A").End(3).Row To 1 Step -1
If WorksheetFunction.IsOdd(i) = True Then Rows(i).Delete Shift:=xlUp
Next i
i = Empty
End Sub[/SIZE][/SIZE]
Merhaba Sayın Haluk.Başka bir alternatif;
.........
[B]noA[/B] = [COLOR="Red"]Int([/COLOR]Range("A" & Rows.Count).End(xlUp).Row[COLOR="red"] / 2) + 1[/COLOR]
Sub Test3()
For i = 0 To Range("A" & Rows.Count).End(xlUp).Row
Rows(i + 1).Delete
Next
End Sub
=MOD(ROW();2)
Sub Listele()
Dim X As Long, Son As Long, Veri As Variant, Zaman As Double, Say As Long
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Zaman = Timer
Son = Cells(Rows.Count, 1).End(3).Row
Veri = Range("A1:A" & Son).Value
ReDim Liste(1 To 1)
For X = LBound(Veri) To UBound(Veri)
If X Mod 2 = 0 Then
Say = Say + 1
ReDim Preserve Liste(1 To Say)
Liste(Say) = Cells(X, 1)
End If
Next
Range("A:A").Clear
Range("A1:A" & Say) = Application.Transpose(Liste)
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
MsgBox "İşleminiz tamamlanmıştır." & Chr(10) & _
"İşlem süresi ; " & Format(Timer - Zaman, "0.000") & " Saniye"
End Sub