DDE Winword Macros

DDE Winword Macros

Post by Mark Banniste » Mon, 01 Feb 1999 04:00:00



I found the answer.  Thought I would pass it along.

if not mydde.open("winword","System") then
       mydde.open("C:\\Program Files\\Microsoft
office\\Office\\WINWORD.EXE","System")
   sleep(5000)

   if not mydde.open("winword","System") then
      msginfo("HI","HI othing done")
      return
      endif
endif
sleep(1000)
hold  = "[FileOpen \"C:\\app\\DDF_Files\\rdetail.seq\"]"
;issues file open command in word
mydde.execute(hold)
sleep(1000)

;this line is the key.
hold = "[Toolsmacro.name=\"Removeit\",.Run]"
mydde.execute(hold)


http://x3.dejanews.com/getdoc.xp?AN=389121443&threaded=1&CONTEXT=9178...

that references many other links in VBA reference and is quite usefull.
Hope this helps someone else
mark

 
 
 

1. Help for dde winword / demande d'aide sur dde winword

Je souhaite utiliser winword 97 partir de paradox 7
je russi lancer l'application  winword avec le document souhait mais
winword ne rend pas la main paradox qui se met en erreur
"DDE : le serveur spcifi ne rpond pas".

Voici le bout de programme que j 'ai cris :

method pushButton(var eventInfo Event)
Var
 Word_dde DDE
Endvar

;ouverture du fichier word
Word_dde.open ("C:\\Program Files\\Microsoft
Office\\Office\\WINWORD.EXE","C:\\pdoxwin\\smh\\cale.doc")

Word_dde.close()

endMethod

Patrice

2. Networking and Dial-up Networking with 4.0

3. problem with running winword macro from SQL job

4. findfirst method not in ado vb 6.0

5. OPAL-WinWord DDE

6. "user"

7. Viaduct DDE ==> Winword

8. MS SQL 421, Dumps, Tape Drives, Benchmarks

9. DDE and Winword 6.0 (FPW26- German)

10. DDE: MSAccess - Winword

11. WinWord Basic commands and DDE

12. DDE communication between foxpro2.6 to Winword

13. Program Manager DDE Macros?