D
Dennis
Using XL 2003
I am using the following code as a work-around for the 8,192 non-contiguous cells
limit in XL.
Dim myDeleteRange As Range
Dim myCounter As Long
For myCounter = 30002 To 2 Step -5000
On Error Resume Next
Set myDeleteRange = Rows(myCounter).Resize(5000).SpecialCells(xlVisible)
On Error GoTo 0
If Not myDeleteRange Is Nothing Then
myDeleteRange.EntireRow.Delete ' <- Error message occurs here
End If
Next
I am getting an "Object Needed" error - I guess I am too close to see it.
TIA Dennis
I am using the following code as a work-around for the 8,192 non-contiguous cells
limit in XL.
Dim myDeleteRange As Range
Dim myCounter As Long
For myCounter = 30002 To 2 Step -5000
On Error Resume Next
Set myDeleteRange = Rows(myCounter).Resize(5000).SpecialCells(xlVisible)
On Error GoTo 0
If Not myDeleteRange Is Nothing Then
myDeleteRange.EntireRow.Delete ' <- Error message occurs here
End If
Next
I am getting an "Object Needed" error - I guess I am too close to see it.
TIA Dennis