Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I'm new to macro and I need some help with the program. Basically, from cell B2 to B25...i want to look for the three character NHA (in that order). If it's not there, erase the whole row. If it's there, keep the row. There may be some characters or spaces before and after that word NHA. I a few lines in the program. If someone can help me modify it, that would be great. Sub Macro1() Dim k As Long For k = Cells(25, "b").End(xlUp).Row To 2 Step -1 If Cells(k, "b") < "*NHA*" Then Rows(k).EntireRow.Delete End If Next k End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding a specific text | Excel Programming | |||
Finding specific text in ranges | Excel Discussion (Misc queries) | |||
Finding specific text in string - Part II | Excel Worksheet Functions | |||
Finding specific text in a string | Excel Worksheet Functions | |||
Finding Specific Text in a Text String | Excel Worksheet Functions |