Hi,
I tried
Code:
--------------------
Public Sub Tester2()
Dim WB As Workbook
Dim SH As Worksheet
Set WB = ActiveWorkbook '<<==== CHANGE
Set SH = WB.Sheets("Sheet1") '<<==== CHANGE
On Error Resume Next
SH.Columns("B:M").SpecialCells(xlBlanks).EntireRow .Delete
On Error GoTo 0
End Sub
--------------------
to delete all rows which have no value in range B to M. Somehow it does
nothing special...
I enclosed an example workbook.
cheers
Juergen
+-------------------------------------------------------------------+
|Filename: DeleteEmptyRow.zip |
|Download:
http://www.excelforum.com/attachment.php?postid=4206 |
+-------------------------------------------------------------------+
--
juergenkemeter
------------------------------------------------------------------------
juergenkemeter's Profile:
http://www.excelforum.com/member.php...o&userid=25248
View this thread:
http://www.excelforum.com/showthread...hreadid=499951