Easiest method may be to record a macro whilst using the Autofilter to show
non-blank rows then set your printrange and paper size.
The rows hidden by the filter will not print.
To get you started...........................
This macro will hide the rows that have a blank cell in column A.
You can record a macro whilst setting a printrange and paper size.
Incorporate the two.
Sub hide_zero_rows()
Dim c As Range
With ActiveSheet.Range("A7:A25")
Do
Set c = .Find("", LookIn:=xlValues, LookAt:=xlWhole, _
MatchCase:=False)
If c Is Nothing Then Exit Do
c.EntireRow.Hidden = True
Loop
End With
End Sub
Gord Dibben MS Excel MVP
>Hi,
>I have a worksheet (sheet2) used as a report. It should be printed on ONE
[quoted text clipped - 9 lines]
>
>Khalil