Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sub sWords() Range("E1").Select Do While Len(ActiveCell.Value) < 0 str1 = InStr(1, ActiveCell.Value, "New") str2 = InStr(1, ActiveCell.Value, "Account") If str1 = 1 Or str2 = 1 Then ActiveCell.Offset(1, 0).Select Else Selection.Delete Shift:=xlUp End If Loop End Sub That should do it. Cheers Jo -- LFCFa ----------------------------------------------------------------------- LFCFan's Profile: http://www.excelforum.com/member.php...fo&userid=3748 View this thread: http://www.excelforum.com/showthread.php?threadid=57418 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find specific info within a text string using VBA | Excel Discussion (Misc queries) | |||
Find a specific formatted string in a cell | Excel Worksheet Functions | |||
Find specific value in a string | Excel Discussion (Misc queries) | |||
Find specific text in a string | Excel Programming | |||
Find specific text in a string | Excel Programming |