The information in this article applies to:
SYMPTOMS
When you run a macro that formats a number with a date, time, currency, or
standard number format in a Visual Basic, Applications Edition module, the
format in the macro is different from the format displayed in the
International dialog box of Control Panel.
When the following country settings are used
Croatiaa macro in a Visual Basic module displays date, time, currency, and numbers as United States formats. CAUSEAustriaThis incorrect date format is caused by a problem in Microsoft Windows. When you set the Country setting to Austria in the International dialog box, the [intl] section of the WIN.INI file has the following incorrect setting:sShortDate=yyyy-MM-ddddThis causes the date in Visual Basic modules to be formatted with the full day name. Canada(French)This incorrect date format is caused by a problem in Microsoft Windows. The [intl] section in the WIN.INI file has the following inconsistent settings:sDate=/The date separators in these settings should be consistent. (The default should be the hyphen (-) character.) HungaryThis incorrect date format is also caused by a problem in Microsoft Windows. In the [intl] section in the WIN.INI file, both the sShortDate and the sLongDate settings correctly show a period at the end. The Visual Basic module uses these correct settings to format a date. In this case, the format of the dates in the International dialog box are incorrect.Croatia, Romania, Serbia, and SloveniaVisual Basic, Applications Edition does not recognize the Croatia, Romania, Serbia, and Slovenia system locales. For languages that are not recognized, date, time, currency, and number formats in Visual Basic modules use the default United States/English International settings.More information about this is available in the XLREADME.HLP file. To view this file, do the following:
WORKAROUNDAustriaTo work around this problem and display the correct short date format in a Visual Basic module, do the following:
Canada(French)To correct this inconsistency, do the following:
Additional query words:
Keywords : |
Last Reviewed: October 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |