Excel 3.0 Macro References to WK3 Files Fail in 4.0

Last reviewed: November 30, 1994
Article ID: Q81691
The information in this article applies to:
  • Microsoft Excel for Windows, versions 4.0, 5.0
  • Microsoft Excel for the Macintosh, version 4.0

SUMMARY

A Microsoft Excel version 3.0 macro that references a Lotus WK3 file needs to be modified to work in Microsoft Excel versions 4.0 and later because of the way that WK3 files are opened in Microsoft Excel.

MORE INFORMATION

In Microsoft Excel versions 4.0 and 5.0, a WK3 file is opened as a Workbook and uses the naming convention [filename]ply letter. This means the macro call, for example, =ACTIVATE("TEST.WK3") activates the Workbook Contents page in Microsoft Excel version 4.0, instead of a worksheet file (ply).

In Microsoft Excel version 5.0, the macro call =ACTIVATE("TEST.WK3") activates the sheet that was last active in the workbook TEST.WK3, which may or may not be the desired sheet. You can modify a macro that references a WK3 file to utilize the new 3-D structuring provided by Microsoft Excel Workbooks.

This behavior is by design in Microsoft Excel 4.0 and 5.0. Macros that you created in earlier versions of Microsoft Excel can easily be modified to work correctly by changing the reference in the macro function call to reflect the Microsoft Excel Workbook naming conventions. For example, by changing =ACTIVATE("TEST.WK3") to =ACTIVATE("[TEST.WK3]A") your macro activates the top level ply of the WK3 file. For subsequent plies, change the letter A to the letter corresponding to the ply you want to activate or reference.


KBCategory: kbusage
KBSubcategory:

Additional reference words: 3.00 4.00 5.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 30, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.