Font Changes Made by Macro Not Retained in Header or Footer

Last reviewed: February 5, 1998
Article ID: Q117341
2.00 2.00a 2.00a-CD 2.00b 2.00c 6.00 6.00a 6.00c 7.00 WINDOWS kbusage kbmacro

The information in this article applies to:

  • Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0

SYMPTOMS

If you run a macro that uses the FormatFont WordBasic statement to apply font formatting in the header or footer of your document, Word for Windows does not save the font formatting changes.

By contrast, Word DOES save font formatting changes you apply using a macro that contains the Font statement.

STATUS

We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

 RAID Bug #1043, active (pending review)

WORKAROUND

If you plan to use your macro to format text in the header or footer of your documents, use the specific WordBasic commands such as Font, FontSize, Style, Bold, and so forth, to apply font formatting. Do not use the FormatFont statement.


KBCategory: kbusage kbmacro
KBSubcategory: kbfont
Additional reference words: winword2 2.00 2.00a 2.00a-CD 2.00b 2.00c 6.00
word6 6.00a 6.00c 7.00 gone lost loses losing keeps retain retained reverts
back winword
Keywords : kbfont
Version : 2.00 2.00a 2.00a-CD 2.00b 2.00c
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.