Any help is appreciated.
Thanks
Amjad
in NG microsoft.public.excel.programming
Sub DeleteSpecifiedRows()
' This macro deletes all rows on the active worksheet
' that have the user input specified value in column C.
Dim iRow As Long
Dim SpecValue As String
SpecValue = InputBox("Enter column C value", "Selective Row Deletion")
If SpecValue = "" Then Exit Sub
For iRow = ActiveSheet.UsedRange.Rows.Count To 1 Step -1
If Cells(iRow, 3) = SpecValue Then Rows(iRow).Delete
Next iRow
End Sub
"Amjad Barakat" <am...@barakat.net> wrote in message
news:apclqt$sh6$1...@news.izap.com...
Thanks
Sub test()
Dim i As Integer
Dim j As Integer
Dim k As String
For i = 1 To 24
j = i Mod 2
If j = 0 Then
k = Chr(64 + 1)
Range(k & i & ":" & "iv" & "1").Select
Selection.Delete
End If
Next i
End Sub
"Amjad Barakat" <am...@barakat.net> wrote in message
news:apn0vs$mrq$1...@news.izap.com...