View Single Post
 
Old 08-23-2014, 03:15 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,373
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by tariqaleed2 View Post
The best way I found , is forcing the user to closing ALL WORD Documents before making action .
If there is another way, TO NOT be THE user forcing the closing ALL WORD Documents TO BE better else the problem was solved .
You need to learn how to automate Word correctly, so that you can create a new Word session or, perhaps, automate an existing Word session. If you do the former, you don't have to worry about whether Word is already running or whether the user has any documents open. If you do the latter, you need to ensure your code is properly written so that existing documents don't need to be closed.

For an example of the former, see:
https://www.msofficeforums.com/word-...variables.html
For an example of the latter, see:
https://www.msofficeforums.com/word-...e-ms-word.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote