Headers/Footers not displaying after mailmerge

K

Kevin Wydra

I am performing a mailmerge (Word 97-2003) operation via automation from Visual Basic. For some reason the header and footer of the resulting document do not display unless you go to the toolbar and click the menu option to view header/footer. Is there a way to make the header/footer visible programatically? The merge form itself has the header/footer visible when you open the form so I figured the resulting document would have them visible as well.

?
 
D

Doug Robbins - Word MVP

You are probably in Normal View, rather than Page Layout View

Use an ActiveWindow.View = wdPrintView to change the view to one in which
the Headers and Footers will be displayed

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
Kevin Wydra said:
I am performing a mailmerge (Word 97-2003) operation via automation from
Visual Basic. For some reason the header and footer of the resulting
document do not display unless you go to the toolbar and click the menu
option to view header/footer. Is there a way to make the header/footer
visible programatically? The merge form itself has the header/footer
visible when you open the form so I figured the resulting document would
have them visible as well.
 

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