Then they aren't really blank. This means that the code you were given by the
others also won't work. If you are seeing 'blank' cells, but for example those
cells are really the results of formula that return blanks, eg
=IF(X<>1,"","abc") which if X doesn't equal 1 will appear to be a blank cell.
The cell however is not really blank, and so you cannot use the special cells
method to do what you want. Perhaps also you actually have spaces in there. If
so then what you can do is to use a piece of code to delete what appear to be
blank rows by trimming the cells and deleting any that have a length of 0, eg:-
Sub DelBlankLookingCells()
Dim Rng As Range
Dim Cel As Range
Dim DelRng As Range
Set DelRng = Nothing
Set Rng = ActiveSheet.UsedRange
For Each Cel In Rng
If Len(Trim(Cel.Value)) = 0 Then
If DelRng Is Nothing Then
Set DelRng = Cel
Else
Set DelRng = Union(DelRng, Cel)
End If
End If
Next
If Not DelRng Is Nothing Then
DelRng.Delete Shift:=xlToLeft
End If
End Sub