Excel find a value delete rows until any valu
Closed
Tabe
-
Oct 28, 2010 at 09:46 AM
RayH Posts 122 Registration date Tuesday August 31, 2010 Status Contributor Last seen June 20, 2016 - Oct 31, 2010 at 06:18 PM
RayH Posts 122 Registration date Tuesday August 31, 2010 Status Contributor Last seen June 20, 2016 - Oct 31, 2010 at 06:18 PM
Related:
- How to delete rows with negative values in excel
- Excel mod apk for pc - Download - Spreadsheets
- How to open excel file in notepad - Guide
- How to delete part of a table in word - Guide
- How to convert number to words in excel - Guide
- How to delete skype account permanently - Guide
3 responses
RayH
Posts
122
Registration date
Tuesday August 31, 2010
Status
Contributor
Last seen
June 20, 2016
26
Oct 31, 2010 at 06:18 PM
Oct 31, 2010 at 06:18 PM
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 August 31, 2010
Status
Contributor
Last seen
June 20, 2016
26
Oct 28, 2010 at 10:19 AM
Oct 28, 2010 at 10:19 AM
Sort the sheet by column AX. This will group all values in column AX together making them easy to find and delete.