Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I tried this and received the error message "Compile error: Next without For"
"Jef Gorbach" wrote: Dont have a copy of Excel handy to test, but sounds like you want something along the lines of: Sub untested() Dim myrange As Range For row = 2 to Range("A65536").End(Xlup).Row myrange = Range(Cells(row,"A"),Cells(row,"d")) If Application.WorksheetFunction.Sum(myrange) = 0 Then myrange.EntireRow.Delete Next End Sub . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Macro to Hide Rows with Certain Values | Excel Discussion (Misc queries) | |||
Automatically hide rows with no values | Excel Discussion (Misc queries) | |||
How do I hide rows in a pivot table with zero values? | Excel Worksheet Functions | |||
Can anyone tell me how to hide rows that have 0 values and text. | Charts and Charting in Excel | |||
How do i hide rows in pivot table that has zero values? | Excel Discussion (Misc queries) |