Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I got this code at http://www.mvps.org/dmcritchie/excel/delempty.htm It deletes the rows that contain the text ANN. What Im asking for is the opposite. Can it be modified to save the rows that contain the text ANN??????? Sub Find_ANN() Dim rng As Range Dim what As String what = "ANN" Do Set rng = ActiveSheet.UsedRange.Find(what) If rng Is Nothing Then Exit Do Else Rows(rng.Row).Delete End If Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete rows with specific text | New Users to Excel | |||
Delete Rows Without Specific Text | Excel Worksheet Functions | |||
Importing Specific Rows from a text file into Excel | Excel Programming | |||
Delete Rows With Specific Text | Excel Programming | |||
Delete rows with specific text | Excel Programming |