Microsoft KB Archive/231631

From BetaArchive Wiki
Knowledge Base


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

Article ID: 231631

Article Last Modified on 7/24/2001



APPLIES TO

  • Microsoft Word 2000 Standard Edition



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:

  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 that this is a problem in the Microsoft products that are 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:

212400 WD2000: General Information About International and Multilingual Features



Additional query words: macro language localized non-english

Keywords: kbbug kbnofix kbintldev KB231631