Re: Include headers/footers when saving as HTML

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



quartz wrote:
> I am using Office 2003 on Windows XP.
>
> Saving an Word file as an HTML works great - the only thing is, it
> doesn't include the headers and footers in the document.
>
> Does anyone know how to include them when a file is "saved-as" an
> HTML? Or is there an alternative solution other than "save-as"
> (within Word)?
>
> I need a VBA or VB-script solution. Can someone please post some
> example code or otherwise enlighten me? Thanks much in advance for
> your assistance.

Considering that HTML doesn't have any concept of "pages", where/how do you
expect Word to display the header and footer? They're omitted by design
because they don't make sense.

If you want one copy of the header at the top of the web "page" and one copy
of the footer at the bottom, you'll have to put them there yourself. Make a
copy of the Word document, cut the header content and paste it into the body
of the document at the top, and repeat for the footer at the bottom.
Remember to delete any Page, NumPages, SectionPages, or PageRef fields,
because they'll all display just "1". Then save the result as HTML.

I suppose this could be written as a macro, but it isn't the sort of thing
I'd do more than very occasionally.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


.



Relevant Pages

  • Re: Unable to Control Header in html mail
    ... The dialog is correct - you can't preview HTML. ... If I'm following correctly, the header and footers are behaving as expected, ... Teach Yourself Outlook 2003 in 24 Hours ... > page setup all the header and footer areas are blank. ...
    (microsoft.public.outlook.printing)
  • Re: Word 2004 Page Numbering Problem
    ... you need to set the document up for double-sided printing. ... The bottom section break is the Default section break. ... The Header and Footer "From Edge" setting. ...
    (microsoft.public.mac.office.word)
  • RE: Custom Page Control
    ... default output html content and them locate the...section ... and insert our header and footer in it. ... as controls in the page's control collection and put all the controls in ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Word 2007 Footer Height
    ... (click the dialog launcher for Page Setup at the bottom of the Page Setup ... But be aware that the header margin ... The representation of the header and footer boxes is inconsistent. ... If I push on the top end of the white bar in the vertical ruler ...
    (microsoft.public.word.docmanagement)
  • Re: Word 2007 Footer Height
    ... (click the dialog launcher for Page Setup at the bottom of the Page Setup ... But be aware that the header margin defines ... The representation of the header and footer boxes is inconsistent. ... If I push on the top end of the white bar in the vertical ruler the ...
    (microsoft.public.word.docmanagement)