I don't want my footers to appear on printed document

J

Jean

Microsoft Office 2003
I want to see headers / footers on my screen but I want to PRINT my document
WITHOUT showing the headers / footers
 
S

Stefan Blom

One way would be to intercept the FilePrint and FilePrintDefault commands in
Word so that the header and footer contents are deleted prior to printing.
 
G

Graham Mayor

That might work, however you would still have to allocate space for the
header/footer if you want the document to retain the layout, so it would be
better to colour them white - you will find a macro to do this at
http://www.gmayor.com/Optionally_print_letterhead.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
L

Lynette Nelson

Graham, I used your method to white out the headers on a Word 2003 doc and it worked perfectly. However, I now have another document I need to use it on and I'm running into a problem. This new document was created for us by a third party. It was created in Word 2010. We have 2003 so it was converted when opened and then I saved it as a 2003 document and tried to copy and paste the macro into the new document.

When I open the document, I get the normal "enable macro" popup. When I run the macro, it works but only up to the point where it whites out the header. After whiting out the header, it errors out with the message:

Run-time error '-2147024891 (80070005)':
This member can only be accessed for a picture or an OLE object.

Debug brings me to this line:
oRng.ShapeRange(i).PictureFormat.Brightness = 1#

The header only contains one JPG graphic, which is how the first document I used this on is also set up.

Do you have any suggestions? Does this have anything to do with the fact that it was created in a later Word version?

Any light you can shed would be appreciated! Thanks!

Lynette
 

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

Top