Print header change

  • Thread starter Thread starter Hmmm...
  • Start date Start date
H

Hmmm...

I am printing a worksheet using

With Sheets("Sheet1)
' Code that messes around with the worksheet
'
'
.PrintOut
End With

How can I change the print header before doing the .PrintOut? Thanks.
 
Try something like the following before the PrintOut method:

.PageSetup.CenterHeader = "whatever you want"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Hi,
You'll see how to set up all aspects of headers by recording a macro while
you do manual manipulations with page setup. Try pasting a logo too while
you are at that. :)
hth
Paul
 
btw:
if you do several changes to page setup, try disabling screen repainting by
Application.ScreenUpdating = False (and then back to True :)
Page setup tends to make screen flicker.
hth
Paul
 

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