WD97: Text Copied from Macro Window Loses Style Formatting

Last reviewed: February 23, 1998
Article ID: Q181543
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

Code windows in the Visual Basic Editor use the formatting defined for the Macro Text style. However, if you copy text from a code window into a document window, the formatting is not retained. Word does not apply the Macro Text style to the macro text in the document window.

WORKAROUND

To retain formatting, apply the Macro Text style to the macro text after pasting the text into a document window. To apply the Macro Text style, follow these steps:

  1. Select the macro text in the document window.

  2. On the Format menu, click Style.

  3. In the List list, click All Styles.

  4. In the Styles list, click Macro Text, and then click Apply.

STATUS

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

REFERENCES

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for
               Applications


Additional query words: macrotext style macro text vbe
Keywords : kbdta OffVBA
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbnofix


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 23, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.