Board index » Visual Studio » Detect if Ms Word Application is running or not.
|
oicu812
|
|
oicu812
|
Detect if Ms Word Application is running or not.
Visual Studio321
Good day, VB 6. How can we detect if Ms Word Application is running or not. Many thanks. Jenni - |
| Jezebel
Registered User |
Tue May 04 22:42:38 CDT 2004
Re:Detect if Ms Word Application is running or not.
GetObject returns an existing instance if there is one...
Dim pWordApp as object on error resume next Set pWordApp = GetObject("Word.Application") on error goto 0 if pWordApp is nothing then MsgBox "Word is not running" end if "Jenni" <turtle@fptnet.com.vn>wrote in message QuoteGood day, - |
| Jenni
Registered User |
Wed May 05 01:33:17 CDT 2004
Re:Detect if Ms Word Application is running or not.
Many thanks
Jenni "Jezebel" <dwarves@heaven.com.kr>wrote in message QuoteGetObject returns an existing instance if there is one... - |
