Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My Guess is that Col A is text not Number Format, if so you would need to
replace this line If ActiveCell.Value = 83410 Then with If ActiveCell.Value = "83410" Then it should then be ok r pete Sub DELETE_83410() Range("A1").Select Do Until ActiveCell.Value = "" If ActiveCell.Value = "83410" Then numRows = Selection.Rows.Count numColumns = Selection.Columns.Count Selection.Resize(numRows + 7, numColumns + 0).Select Selection.Delete ActiveCell.Offset(-1, 0).Select End If ActiveCell.Offset(1, 0).Select Loop End Sub -- (][ This Email has been scanned by Norton AntiVirus. ][) "anurag.d " wrote in message ... Anyone else got any better options?? Thanks in advance --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I get old rows to auto delete when new are added? | Excel Discussion (Misc queries) | |||
How do you format an auto update to delete rows with expired date | Excel Worksheet Functions | |||
Auto Number the Rows of Auto Filter Result | Excel Discussion (Misc queries) | |||
If formula result is false, how do I auto-delete that rows? | Excel Worksheet Functions | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions |