Thread
:
Save Excel rows that contain specific text
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
Save Excel rows that contain specific text
How about datafilterautofiltercopy elsewhere
--
Don Guillett
SalesAid Software
"azSuch" wrote in message
oups.com...
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
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett