DDEEXECUTE carries out commands in another application. For example, to cause Excel to sound a beep:
To insert text at the current cursor position of a Word document, try:
ddeexecute(winchan, '[Insert "This is a DDE string"]')
Refer to the macro or language reference of your particular application for specific details on the available commands.