Excel find a value delete rows until any valu
Closed
Tabe
-
28 Oct 2010 à 09:46
RayH Posts 122 Registration date Tuesday 31 August 2010 Status Contributor Last seen 20 June 2016 - 31 Oct 2010 à 18:18
RayH Posts 122 Registration date Tuesday 31 August 2010 Status Contributor Last seen 20 June 2016 - 31 Oct 2010 à 18:18
Related:
- How to delete rows with negative values in excel
- How to delete a row in word - Guide
- How to delete duplicates in excel - Guide
- How to change date format in excel - Guide
- Excel mod apk for pc - Download - Spreadsheets
- How to clear formatting in excel - Guide
3 responses
RayH
Posts
122
Registration date
Tuesday 31 August 2010
Status
Contributor
Last seen
20 June 2016
26
31 Oct 2010 à 18:18
31 Oct 2010 à 18:18
Sub deleterow()
'
' Delete rows with Cell AX="PPA Pre-Checkpoint4"
Sheets("Sheet1").Select
Dim myrow As Integer
Let myrow = 1
While Cells(myrow, 50).Value <> "" ' Loop until a blank cell is found
If Cells(myrow, 50).Value = "PPA Pre-Checkpoint4" Then
Cells(myrow, 50).Select
Selection.Delete Shift:=xlUp
Else
Let myrow = myrow + 1
End If
Wend
End Sub
RayH
Posts
122
Registration date
Tuesday 31 August 2010
Status
Contributor
Last seen
20 June 2016
26
28 Oct 2010 à 10:19
28 Oct 2010 à 10:19
Sort the sheet by column AX. This will group all values in column AX together making them easy to find and delete.