This documentation is archived and is not being maintained.

How to: Target the Office Multilingual User Interface

Note Required applications

The features in this topic are available only if you have the required applications installed.

For more information, see Features Available by Product Combination.

  • One of these development environments:

    VSTO 2005


    Visual Studio Team System

  • Microsoft Office 2003

The Multilingual User Interface (MUI) is a Microsoft Office System feature that gives the end user the ability to change the language of the user interface (UI). For example, an end user working with an English UI is to change the language of the UI to Spanish.

If your application will be used by people who use multiple languages of Office, you can add code to automatically change the language of your UI strings to match the language being used by Office on the user's computer (assuming that the user has the correct resources installed).

For more information, see Globalization and Localization of Office Solutions.

To check the current Office UI setting

  1. Open your Microsoft Office Word 2003 or Microsoft Office Excel 2003 project in Code view.

  2. Add code to the Microsoft Excel Open, Microsoft Excel New, Microsoft Word Open, or Microsoft Word New event to set the language of your UI strings to match the language being used by the version of Office currently running on the user's computer. The code should look like this:

    System.Threading.Thread.CurrentThread.CurrentUICulture =
        new System.Globalization.CultureInfo(

See Also