"OLE Automation Run-time Error 440" When Displaying Time |
Q123970
When you use the Visual Basic, Applications Edition, Time function to display the current system time, you may receive the following error message:
Run-time error '440':
OLE Automation error
The Time function is unable to convert the system time using the settings that are specified in the International Settings in Control Panel. This problem will occur if the following entries are missing from the [intl] section of the WIN.INI file:
sShortDate=M/d/yy
sLongDate=dddd', 'MMMM' 'd', 'yyyy
sLanguage=enu
sCountry=United States
To work around this problem, add the following line to the [intl] section of the WIN.INI:
sShortDate=M/d/yyYou can also force the correct setting to be written to the [intl] section by making certain changes in Control Panel. To add the appropriate settings, use the following steps:
sLongDate=dddd', 'MMMM' 'd', 'yyyy
sLanguage=enu
sCountry=United States
Additional query words: xl5 prj4 "run-time error 440"
Keywords :
Issue type :
Technology : kbExcelSearch kbExcel500 kbProjectSearch kbExcel500c kbProject400
|
Last Reviewed: October 17, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |