The information in this article applies to:
SUMMARY
In Microsoft Excel 98 Macintosh Edition, when you create a reference from a
workbook to another workbook or to an add-in, the referenced workbook or
add-in is automatically opened by Microsoft Excel 98 Macintosh Edition.
This behavior is different from behavior in earlier versions of Microsoft
Excel. In earlier versions, the referenced workbook or add-in is not
automatically opened.
MORE INFORMATION
In Microsoft Excel 98 Macintosh Edition, you can create a reference from
one workbook to another workbook or to an add-in by following these steps:
Errors Opening Referenced Workbooks or Add-Ins with Visual Basic MacrosMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:http://www.microsoft.com/support/supportnet/overview/overview.aspIf you attempt to use a Visual Basic for Applications macro to open a workbook or add-in that is already referenced by another open workbook, you may receive the following error message: For example, if Book1 references Book2, you receive the error message if a Visual Basic macro executes the following line of code: To prevent the error message from appearing, modify the Visual Basic code to the following:
Errors Closing Referenced Workbooks or Add-InsIn Microsoft Excel 98 Macintosh Edition, you cannot close a referenced workbook or add-in if the referencing workbook is open. If you attempt to do so, you receive one of the following error messages:
-or- For more information about this problem, please see the following article in the Microsoft Knowledge Base: Q159794 XL97: Cannot Programmatically Close Referenced Workbook Errors When Multiple Users Reference the Same Workbook or Add-InBecause Microsoft Excel 98 Macintosh Edition automatically opens referenced workbooks and add-ins, you may experience problems if multiple users reference the same copy of a workbook or an add-in. This problem may occur if you create a reference to a workbook or to an add-in that is stored on a network server, or if you open a workbook that contains this kind of reference.The first user who creates the reference does not receive an error message. However, all users who subsequently create a reference or open a workbook that contains this kind of reference may receive the following error message: If you click Cancel in the File Reservation dialog box, you may also receive the following error message: If you use a Visual Basic macro to open the referencing workbook, the previous error message may not appear immediately, and the workbook is opened without any problems. When the error message does appear, click Read-Only or Notify. If multiple users share the same copy of an add-in, you may want to give each user a copy of the add-in, and then ask each user to change the reference to refer to each copy of the add-in. By doing this, you can prevent this problem from occurring. Additional query words: XL98
Keywords : xlvbainfo |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |