XL: OpenLinks Method Fails When Recorded Macro Is RunLast reviewed: February 3, 1998Article ID: Q134918 |
The information in this article applies to:
SYMPTOMSIn the versions of Microsoft Excel listed above, if you insert an OLE object and link to a file, and you then record the process of opening the source file, the resulting macro will not work. When you play back the Visual Basic for Applications macro, you receive the following error message:
Run-time error '1004': OpenLinks method of Worksheet class failed RESOLUTIONTo create a link that you can update in a macro, do the following:
If you then turn on the macro recorder and double-click the object to open the source document, the resulting macro will work.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel 97 for Windows and Microsoft Excel 98 Macintosh Edition. For additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q115693 TITLE : "Incorrect Argument Recorded with OpenLinks Method" REFERENCESFor more information about the OpenLinks Method, choose the Search button in the Visual Basic Reference and type:
OpenLinks Method |
Additional query words: 5.00 5.00a 5.00c 7.00 7.00a Links OLE XL5 XL7
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |