Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waiting for process completion
#8
I did not find any Word functions to call Word macros directly.

Another way to synchronize Word and QM - at the end of the Word macro start QM macro. This example calls QM macro "QmMacroFromWord":

Shell "qmcl.exe M " & Chr(34) & "QmMacroFromWord" & Chr(34)

That is, use two QM macros. The first macro calls the Word macro (clicks Word toolbar button) and exits immediately. When the Word macro finishes, it calls the second QM macro.

Note that two QM macros cannot run simultaneously. The first macro must exit as soon as possible, or the second macro may not start. Tip: in second macro Properties, select Priority: wait. Or, use functions instead.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)