The information in this article applies to:
SYMPTOMSThe GeoFacts.vbp sample project fails with the following run-time error when run on a Windows NT machine: This error does not occur on a Windows 95 or Windows 98 machine. CAUSEThe run-time error occurs on the following line of code:
The GetObject function fails because the full path to world.xls is not
specified in the argument.
RESOLUTIONWhen using the GetObject function, make sure that the full path to the file name is specified. To correct the code in the GeoFacts.vbp sample, change the following line of code (located in the Setup procedure in Module1):
to:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 6.0. REFERENCESFor additional information, please see the following articles in the Microsoft Knowledge Base: Q143461 XL97: CreateObject and GetObject Work Differently Q178166 PRB: GeoFacts Sample Causes Type Mismatch Error with Excel 97 Additional query words: 'world.xls'
Keywords : kbAutomation kbVBp kbVBp400bug kbVBp500bug kbVBp600fix kbGrpVB |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |