Option Explicit
Sub Hide Rows with blank cells()
' akinrotimi, 13/08/2011
http://www.mrexcel.com/forum/newreply.php?do=newreply&noquote=1&p=2826730
Application.ScreenUpdating = False
Range("E2").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC[-4]="""",RC[-3]="""",RC[-2]="""",RC[-1]=""""),""Q"","""")"
Range("E2").Select
Selection.AutoFill Destination:=Range("E2:E10000"), Type:=xlFillDefault
Range("E2:E10000").Select
Range("E2").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC[-4]="""",RC[-3]="""",RC[-2]="""",RC[-1]=""""),""Q"","""")"
Range("E2").Select
Selection.AutoFill Destination:=Range("E2:E10000")
Range("E2:E10000").Select
Range("E2").Select
ActiveCell.FormulaR1C1 = _
"=IF(AND(RC[-4]="""",RC[-3]="""",RC[-2]="""",RC[-1]=""""),""Q"","""")"
Range("E2").Select
Selection.AutoFill Destination:=Range("E2:E10000")
Range("E2:E10000").Select
Range("E4").Select
Columns("E:E").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("E8").Select
Application.CutCopyMode = False
Columns("E:E").Select
Selection.TextToColumns Destination:=Range("E1"), DataType:=xlFixedWidth, _
FieldInfo:=Array(0, 1), TrailingMinusNumbers:=True
Range("E1").Select
Columns("E:E").SpecialCells(xlCellTypeBlanks).EntireRow.Hidden = True
Columns("E:E").Select
Selection.ClearContents
Range("E1").Select
Application.ScreenUpdating = True