Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
maybe something like this
Sub test() Dim c As Range Dim rngDelete As Range For Each c In ActiveSheet.Range("A106:A205") If WorksheetFunction.CountA(c.Resize(1, 9)) = 0 Then If rngDelete Is Nothing Then Set rngDelete = c.EntireRow Else Set rngDelete = Union(rngDelete, c.EntireRow) End If End If Next c If Not rngDelete Is Nothing Then rngDelete.Delete End Sub -- Hope that helps. Vergel Adriano "pgarcia" wrote: I'm looking to delete rows that have no data from A106:I205. This will always be a fixed spot. Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If data is returned then delete data | Excel Worksheet Functions | |||
Delete duplicate data based on date of data | Excel Programming | |||
Using autofilter to ADD data not delete data | Excel Programming | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming |