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

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


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 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: 5.00c 8.00 97

Keywords : kbinterop kbprg kbdta PgmEvnt IntpDde IntpOthr KbVBA
Version : MACINTOSH:4.0,5.0,5.0a; WINDOWS:4.0,5.0,5.0c,7.0,7.0a,97
Platform : MACINTOSH WINDOWS
Issue type : kbprb


Last Reviewed: October 20, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.