XL: OnData/ON.DATA Function Doesn't Work With Object Links

Last reviewed: February 3, 1998
Article ID: Q126316
The information in this article applies to:
  • Microsoft Excel 97 for Windows
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel for Windows, versions 4.0, 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 4.0, 5.0, 5.0a
  • Microsoft Excel 98 Macintosh Edition

SYMPTOMS

When you use the OnData property in a Microsoft Visual Basic for Applications procedure in Microsoft Excel, the procedure that is set to run does not run when dynamic data exchange (DDE) or OLE data arrives in Microsoft Excel.

CAUSE

The OnData property only works when the updated object is a text string or a formula, not a linked object that uses another format. Only linked text values cause the procedure that is assigned (using the OnData property) to run. This behavior is by design of Microsoft Excel. This behavior also occurs with the Microsoft Excel 4.0 ON.DATA macro function.

REFERENCES

For more information about the OnData Property, click the Search button in the Visual Basic Reference and type:

    OnData Property


Additional query words: 4.00 5.00 5.00c 7.00 8.00 97
Keywords : kbinterop kbprg IntpDde IntpOthr PgmEvnt
Version : WINDOWS: 4.0, 5.0, 7.0, 7.0a, 97; MACINTOSH: 4.0, 5.0, 5.0a, 98
Platform : MACINTOSH WINDOWS
Issue type : kbprb


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: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.