Article ID: 105447
Article Last Modified on 7/13/2004
Control Name Caption Properties
--------------------------------------------------------------
Form1 Form1 Form1 LinkMode : 1-Source
LinkTopic : Form1
TextBox Text1 Text1 LinkItem : Text1
Record1 (a)
chan=INITIATE("dde","Form1")
=POKE(chan,"text1",'A:\SHEET1.XLS'!C2)
=TERMINATE(chan)
=RETURN(chan)
The Initiate function starts the Visual Basic application if it is
not already running and establishes the link with Form1. The Poke
function puts text from cell C2 of the Sheet1 worksheet into the
Text1 box on form1. The Terminate function terminates the link, and
the Return function ends the macro.
Keywords: kbhowto kbinterop kbprogramming KB105447