I'm using some code to launch Word and wait until the user closes it. The code has worked fine for years but for some reason has now stopped working, I'm wondering if either Windows or Office has had some kind of update that would have affected it?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
Code:
Const Synchronize = &H100000
Private Const Infinite = -1&
lRetVal = Shell(WordApp$, vbMaximizedFocus)
ShellAndHold = OpenProcess(Synchronize, False, lRetVal)
lRetVal = WaitForSingleObject(ShellAndHold, Infinite)
lRetVal = CloseHandle(ShellAndHold)
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments