While running code that uses Automation to control Microsoft Excel, one of the following errors may occur:
In Microsoft Excel 97 and in later versions of Excel, you receive one of the following error message:
In Microsoft Excel 97 and in later versions of Excel, you receive one of the following error message:
Error message 1
Run-time error '1004':
Method '<name of method>' of object '_Global' failed
Method '<name of method>' of object '_Global' failed
Error message 2
Application-defined or object-defined error
In Microsoft Excel 95, you receive one of the following error messages:Error message 1
Run-time error '-2147023174'
OLE Automation error
OLE Automation error
Error message 2
Run-time error '462':
The remote server machine does not exist or is unavailable.
The remote server machine does not exist or is unavailable.