zwelgje Posted July 28, 2008 Posted July 28, 2008 Hi all! I am a newbie and have a question about the code below. When I use this code another (previously opened) Word document will be closed (or Word will ask to save the document). How can I use this code without the closing of another Word document? And no, it isn't _WordQuit that causes the problem #include <Word.au3> $sFilePath = @ScriptDir & "\test.doc" _WordErrorHandlerRegister() $oWordApp = _WordCreate($sFilePath, 0, 0) $oDoc = _WordDocGetCollection($oWordApp, 0) $oDoc.Select $oWordApp.Selection.Copy _WordQuit($oWordApp)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now