WD2000: Run-Time Error 9125 Running Macro After Changing Language of Menus and Dialog Boxes (231631)
The information in this article applies to:
This article was previously published under Q231631 SYMPTOMS
When you try to run a macro after changing the language used in Word menus and dialog boxes, an error message similar to the following may appear:
Run-time error '9125':
Parameter value was out of acceptable range
NOTE: To change the language used in the menus and dialog boxes in Word 2000, do the following steps:
- On the Windows Start menu, point to Programs, point to Microsoft Office Tools, and click Microsoft Office Language Settings.
- On the User Interface tab, change the Display menus and dialog boxes in box to the language you want, and then click OK.
CAUSE
This error message may occur with any of the following Visual Basic for Applications macro statements:
- Selection.Sort FieldNumber:="Paragraphs"
- Selection.Sort FieldNumber2:="Paragraphs"
- Selection.Sort FieldNumber3:="Paragraphs"
- Selection.InsertCaption Label:="Figure"
- Selection.InsertCaption Label:="Equation"
- Selection.InsertCaption Label:="Table"
These macro statements may not be recognized when the macro is run in Word 2000 and the Word menus and dialog boxes have been changed to a different language than the one the macro statement was created in.
WORKAROUND
To work around this problem, do one of the following:
- Run the macro with the Word menus and dialog boxes in the same language that the macro was originally created in.
-or- - Recreate the macro with Word menus and dialog boxes in the language that you want the macro to be run.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 7/24/2001 |
---|
Keywords: | kbbug kbIntlDev KB231631 |
---|
|