Header

  • Thread starter Thread starter Guest
  • Start date Start date
From Ron deBruin's site on Print Tips

Sub Test()
Dim TotPages As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
With ActiveSheet.PageSetup
.RightHeader = "Your Header info"
ActiveSheet.PrintOut From:=1, To:=1
.RightHeader = ""
ActiveSheet.PrintOut From:=2, To:=TotPages
End With
End Sub

For more tips on headers/footers see Ron's pages at

http://www.rondebruin.nl/print.htm


Gord Dibben MS Excel MVP

On Wed, 23 Aug 2006 12:51:01 -0700, Medical Records <Medical
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top