Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I show two friends how they can delete empty rows with the first example that is working I send. After trying it a copple of times both select the whole column and lost all there data. (funny) Found a way to avoid a problem with specialcells If there are more then 8192 ranges the areas.count will be 1 Public Sub DeleteBlankRows() On Error Resume Next 'In case there are no blanks If Columns("A").SpecialCells(xlCellTypeBlanks).Areas. Count = 1 Then Exit Sub Columns("A").SpecialCells(xlCellTypeBlanks).Entire Row.Delete On Error GoTo 0 End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Work around to SpecialCells(xlCellTypeBlanks)... | Excel Discussion (Misc queries) | |||
Specialcells | Charts and Charting in Excel | |||
VBA ON ERROR does not work with SPECIALCELLS | Excel Discussion (Misc queries) | |||
SpecialCells Doesn't Work in a Function?? | Excel Programming | |||
specialcells(xlcelltypeblanks) | Excel Programming |