Ron,
Thanks man, you're the best !
This works great form me.
P.S. i found out that when the sheet is hidden, this code does not work.
Is there a way to keep the sheet hidden and still be able to present the
printpreview so users can pritn this out ?
Ron de Bruin wrote:
With the header of column B in B7 try this
Sub Print_with_Autofilter()
With ActiveSheet
.Range("B7:B100").AutoFilter Field:=1, Criteria1:="<"
ActiveSheet.PrintPreview
.AutoFilterMode = False
End With
End Sub
Hi Ron,
[quoted text clipped - 18 lines]
Thanks,
Pierre
--
Message posted via
http://www.officekb.com