Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi:
The below macro is supposed to delete the complete rows when the cells in columm E are not equal to "CNR001". I am getting an error in rows.Delete Could anyone help me checking out this macro for me. Thanks. Sub NoProReport() Range("E1").Select For Carrier = 1 To 1000 If Carrier = "CNR001" Then ActiveCell(1, 0).Select Else rows.Delete End If Next Carrier End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Error | Excel Worksheet Functions | |||
Macro Error | Excel Discussion (Misc queries) | |||
Macro error : Application-defined or object-defined error | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
Macro error - more help please! | Excel Discussion (Misc queries) |