Font Changes Made by Macro Not Retained in Header or Footer

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:

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

Last Reviewed: February 6, 1998