Microsoft KB Archive/81742

{|
 * width="100%"|

Glossary Entry with Normal Style Doesn't Maintain Alignment

 * }

Q81742

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

-

SUMMARY
In Microsoft Word for Windows, if you format an autotext (known as glossary entry in Word 2.0) entry with Normal style and then directly format it with an alignment that differs from the Normal style, the autotext entry loses the direct alignment formatting if you save the template. After saving the template, text inserted from the autotext entry is formatted with the Normal style alignment rather than the alignment you originally assigned to the autotext entry.

Microsoft has confirmed this to be a problem in Microsoft Word for Windows versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0b, 2.0c, and 6.0. We are researching this problem and will post new information here as it becomes available.

Workaround
Format the text with a unique style prior to defining as autotext. When the autotext is expanded, the style is included with the expanded text.


 * 1) Type the desired autotext text on a blank paragraph line.
 * 2) Apply the desired alignment formatting to the text.
 * 3) Press CTRL+Shift+S (CTRL+S in Word 2.0) to activate the Style box on the ribbon.
 * 4) Type a unique style name (preferably the same name that you want to use for the autotext name), and press ENTER.
 * 5) Select the paragraph.
 * 6) From the Edit menu, choose AutoText (Glossary in Word 2.0). In the Name box, type a unique name (preferably the same name entered in step 4), and choose the Add (Define in Word 2.0) button.
 * 7) From the File menu, choose Save All. Choose the Cancel or No button when prompted to save the current document. Choose the Yes button in response to the prompted to save changes to global template.

The next time the autotext is expanded, the text is formatted according to the uniquely-defined style.

Steps to Reproduce Problem
 From the File menu, choose New, then choose the OK button. Change the Normal style alignment to Justified with the following steps:

 From the Format menu, choose Style, and select Normal in the Style box. In Word 6.0, choose the Modify button and from the Format drop- down box choose Paragraph. In Word 2.0, choose the Define button, then choose the Paragraph button. In the Alignment box, select Justified, then choose the OK button. Check the Add To Template. Choose the Change button (Word 2.0 only). Choose the Yes button is response to the prompt &quot;Do you want to change the properties of the standard style?&quot; Choose the Apply button.</li> From the File menu, choose Save All. Choose the Cancel or No button when prompted to save the current document. Choose the Yes button in response to the prompted to save changes to global template.</li></ol> </li> Type the desired AutoText text on a blank paragraph line.</li> Press CTRL+L to left-align the text.</li> Select the current paragraph.</li> From the Edit menu, choose AutoText, type test in the Name box, and choose the Add button.</li> Test the AutoText in the current document. On a blank line formatted with the Normal style (paragraph alignment is justified), type test, and press F3 to expand the AutoText entry.</li> Position the insertion point in the inserted text. Note that it is left-aligned, as expected.</li> From the File menu, choose Save All. Choose the Cancel or No button when prompted to save the current document. Choose the Yes button in response to the prompted to save changes to global template.</li> Repeat step 7.</li></ol>

Position the insertion point in the text inserted in step 10. Note that the alignment is now justified.