I try to run the following script in order to delete empty rows in an excel table. I get the error: "Cannot use command on overlapping selections " What can be the reason ?
Dim Rng2 As Range
On Error Resume Next
Set Rng2 = Range("Table2").SpecialCells(xlCellTypeBlanks)
On Error GoTo 0
If Not Rng2 Is Nothing Then
Rng2.Delete Shift:=xlUp
End If