• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

DDE - How to send data to WinWord

I am using VB3.  How can I, using DDE, send data that is printed on a form (not a control or text box) or that is in the clipboard to Microsoft Word?  If Word is not running I want the program to open it up automatically.  Can you recommend any detailed documents to look at on the net?
0
rway
Asked:
rway
1 Solution
 
bruintjeCommented:
Hi rway

just reusing my own PAQ
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=10136794 

and the answer there

If you use a version sooner then Word 97  then you use

Dim oWord As Object

Set oWord = CreateObject(Word.Basic)
oWord.Visible = True
Set oWordDoc = oWord.NewDocument

then with the oWordDoc you can do what you want

If you use Word 97 or later it should be

Dim oWord As Object

Set oWord = CreateObject("Word.Application.8")
oWord.Visible = True
Set oWordDoc = oWord.Documents.Add

then with the oWordDoc you can do what you want

Better browse through the helpfiles of the word version you got especially the VBA helps files all the obects are clearly described in there.

Also look at this site

www.search.microsoft.com and search for automation and VB

if you want I shall come up with a list on DDE and Office communication

:O)Bruintje

0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now