WD97: Text Copied from Macro Window Loses Style Formatting (181543)
The information in this article applies to:
- Microsoft Word 97 for Windows
This article was previously published under Q181543 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:
- Select the macro text in the document window.
- On the Format menu, click Style.
- In the List list, click All Styles.
- 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:
163435
VBA: Programming Resources for Visual Basic for
Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbnofix kbprogramming KB181543 |
---|
|