Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Using Code to find a value, and if found, then delete the line. Simple right? Cells.Find(what:="2000103", After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False).Activate If ActiveCell.Value = 2000103 Then Selection.EntireRow.Delete End If But problem is, when the value 2000103 is not present, I get Run Time Error 91. Any ideas on debugging? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem with 'Find' | Excel Discussion (Misc queries) | |||
Find and Find Next problem | Excel Programming | |||
Please help me find the problem with this | Excel Programming | |||
Find problem | Excel Programming | |||
find problem | Excel Programming |