Microsoft KB Archive/296133

= Recorded macro to create right-to-left style records paragraph alignment incorrectly in Word =

Article ID: 296133

Article Last Modified on 6/28/2007

-

APPLIES TO


 * Microsoft Office Word 2007
 * Microsoft Word 2002 Standard Edition

-



This article was previously published under Q296133



Note This article discusses complex scripts functionality. Complex scripts functionality is available when you use the Office Language Settings tool to enable a language, such as Arabic or Hebrew, that requires this functionality.





SYMPTOMS
When you record a macro to create a right-aligned, right-to-left style and then run the recorded macro in a new Microsoft Word document, the new style will be left-aligned.

When you record a macro to create a left-aligned, right-to-left style and then run the recorded macro, the new style will be right-aligned.

The values Justify High and Justify Low for Arabic kashida justification are also recorded incorrectly.



WORKAROUND
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around this problem, edit the macro and change the values for the paragraph alignment. The recorded values and the correct values are listed in the following table:

Alignment        Recorded value               Correct value --- Left             wdAlignParagraphRight        wdAlignParagraphLeft Right            wdAlignParagraphLeft         wdAlignParagraphRight Justify Low      wdAlignParagraphDistribute   wdAlignParagraphJustifyLow Justify High     6                            wdAlignParagraphJustifyHi



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: VBE VBA WD2002 WD2007

Keywords: kbbug kbnofix KB296133

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.