C
Carlton
I'm using MSAccess (VBA) to manipulate a series of MSWord documents. The
program creates a Word Application, loads and manipulates a series of
documents, then saves and closes the Word Application. The Word Application
remains hidden. I notice that if WINWORD.exe is already running, the VBA code
errors. I need to determine if Word is already running (hidden or otherwise)
then interrupt the processing if 'Yes' until the previous instance is
removed. All my MSDN references for this issue relate to API's
GetModuleHandle and GetModuleUsage, each 16-bit API's. With 32-bit,
apparently GetModuleUsage was deleted and GetModuleHandle was changed to
apiGetModuleHandle. I can't find any references to this new API in MSDN. Does
anyone know how I can determine how many instances of WINWORD.exe are running
given the current API's (or other tools)? Thanks for any advice.
program creates a Word Application, loads and manipulates a series of
documents, then saves and closes the Word Application. The Word Application
remains hidden. I notice that if WINWORD.exe is already running, the VBA code
errors. I need to determine if Word is already running (hidden or otherwise)
then interrupt the processing if 'Yes' until the previous instance is
removed. All my MSDN references for this issue relate to API's
GetModuleHandle and GetModuleUsage, each 16-bit API's. With 32-bit,
apparently GetModuleUsage was deleted and GetModuleHandle was changed to
apiGetModuleHandle. I can't find any references to this new API in MSDN. Does
anyone know how I can determine how many instances of WINWORD.exe are running
given the current API's (or other tools)? Thanks for any advice.