WD2000: Run-Time Error 9125 Running Macro After Changing Language of Menus and Dialog Boxes

ID: Q231631


The information in this article applies to:
  • Microsoft Word 2000


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:
  1. On the Windows Start menu, point to Programs, point to Microsoft Office Tools, and click Microsoft Office Language Settings.


  2. 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.



STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

For additional information about international and multilingual features in Microsoft Word 2000, click the article number below to view the article in the Microsoft Knowledge Base:

Q212400 WD2000: General Information About International and Multilingual Features

Additional query words: macro language localized non-english

Keywords : kbdta wd2000 kblpk
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: September 29, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.