WD2002: Recorded Macro to Create Right-to-Left Style Records Paragraph Alignment Incorrectly (296133)



The information in this article applies to:

  • Microsoft Word 2002

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. For more information about multilingual features, click Microsoft <I BRACKET="YES">your Office product</I> Help on the Help menu, type multilingual features in the Office Assistant or the Answer Wizard, and then click Search to view the topics that are returned.

SYMPTOMS

When you record a macro to create a right-aligned, right-to-left style and then run the recorded macro in a new 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 at the beginning of this article.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kbnofix KB296133