Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Office 2003
Reference
Methods
D
 DDEPoke Method [Excel 2003 VBA Lang...
Office Excel 2003 VBA Language Reference
DDEPoke Method [Excel 2003 VBA Language Reference]

Sends data to an application.

expression.DDEPoke(Channel, Item, Data)

expression Optional. An expression that returns an Application object.

Channel   Required Long. The channel number returned by the DDEInitiate method.

Item   Required Variant. The item to which the data is to be sent.

Data   Required Variant. The data to be sent to the application.

Remarks

An error occurs if the method call doesn't succeed.

Example

This example opens a channel to Word, opens the Word document Sales.doc, and then inserts the contents of cell A1 (on Sheet1) at the beginning of the document.

channelNumber = Application.DDEInitiate( _
    app:="WinWord", _
    topic:="C:\WINWORD\SALES.DOC")
Set rangeToPoke = Worksheets("Sheet1").Range("A1")
Application.DDEPoke channelNumber, "\StartOfDoc", rangeToPoke
Application.DDETerminate channelNumber
		


Applies to | Application Object


© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker