Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to delete all the rows where a zero value is in column C. This is what I came up with but it deletes everything in the column and none of the rows. I appreciate any help. I am using Excel 2000. Thanks. Sub DeleteRows() If TypeName(Selection) < "Range" Then Exit Sub On Error Resume Next For Each Cell In Selection If Cell.Value = 0 Then Row.Select = True Else Row.Select False If Selection = True Then Selection.Delete Next Cell End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro for deleting rows and serialising the remaing rows | Links and Linking in Excel | |||
Macro for deleting rows and serialising the remaing rows | Setting up and Configuration of Excel | |||
Macro for deleting rows and serialising the remaing rows | Excel Worksheet Functions | |||
Help!! I have problem deleting 2500 rows of filtered rows!!!! | Excel Discussion (Misc queries) | |||
deleting hidden rows so i can print only the rows showing?????? | Excel Worksheet Functions |