Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I dabble in Word VBA but today I am challenged with an Excel spreadsheet and find myself hopelessly lost. Until corrected I will refer to the spreadsheet grid as rows and columns. I have many rows and many columns. The value in column "P" is either 1 or 0. I want to delete any row that has a "P" column value of 0. This is my attempt at logical thought but it doesn't work. Please help. Sub DeleteRows() For Each oRow in ActiveSheet.Rows If ActiveSheet.Columns("P").value = 0 Then oRow.Delete End If Next oRow 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 |