Hi there, I am trying to place a text string into a bookmarked position in a word document and can not get it to work. There seems to be little or no examples of it on the net. Please help. I have tried the following code:
Private Sub Command0_Click()
Dim chan
Shell ("winword.exe"
, 1
chan = DDEInitiate("WinWord", "system"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
DDEPoke chan, "\Startofdoc", "Test message"
DDETerminate chan
End Sub
Using this code i get this error :
The application can not perform the DDE function that you attempted.
Private Sub Command0_Click()
Dim chan
Shell ("winword.exe"
chan = DDEInitiate("WinWord", "system"
DDEPoke chan, "\Startofdoc", "Test message"
DDETerminate chan
End Sub
Using this code i get this error :
The application can not perform the DDE function that you attempted.