Hi
Try this one
Sub Test()
Dim TotPages As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$1"
ActiveSheet.PrintOut From:=1, To:=TotPages - 1
.PrintTitleRows = ""
ActiveSheet.PrintOut From:=TotPages, To:=TotPages
End With
End Sub

Signature
Regards Ron de Bruin
http://www.rondebruin.nl
> Hi all,
>
[quoted text clipped - 8 lines]
> Thanks
> Nen