OLEDBConnection.LocaleID (Excel)

Returns or sets the locale identifier for the specified connection.

Before you set the LocaleID property to a new locale, you must set the RetrieveInOfficeUILang property to False. For more information about valid Locale ID (LCID) values, see the LCID-Locale Mapping Table.


ActiveWorkbook.Connections(1).OLEDBConnection.LocaleID = 3082