Excel: Linked Attached Text Causes Macro Error

Last reviewed: October 7, 1997
Article ID: Q74263
3.00 MACINTOSH kbother

SUMMARY

If you use a macro to attach text in a chart that uses a formula to link to a cell on a Worksheet, Excel may return the error "Formula is not Valid."

Please contact Microsoft Product Support Services at 425-635-7080 for more information.

For example, the following macro may cause the "Formula is not Valid" error message to appear:

 =ATTACH.TEXT(1)
 =FORMULA("=Worksheet1!R1C3")
 =RETURN()

To workaround this, deselect the chart title and then reselect it before changing it's contents. For example, the above macro becomes:

 =ATTACH.TEXT(1)
 =SELECT("Chart")
 =SELECT("Title")
 =FORMULA("=Worksheet1!R1C3")
 =RETURN()


KBCategory: kbother
KBSubcategory:

Additional reference words: 3.0 3.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: October 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.