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

ID: Q126316

The information in this article applies to:

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: 4.00 5.00 5.00c 7.00 8.00 97
Keywords          : kbinterop kbprg kbdta PgmEvnt IntpDde IntpOthr KbVBA 
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

Last Reviewed: January 2, 1999