subina Posted September 21, 2016 Share Posted September 21, 2016 i access a list of files in a zip document. i manualy open one which is a word document i want to access the document with a script using the following code $wordfile = "c:\users\user\desktop\" & $ftitle ; where $ftitle is picked up from the document title $oword = _word_create() $owordapp = _word_docattach ($oword, $ftitle, "filename") if @error then msgbox(0,"",@error) endif $odoc = _word_docopen($owordapp, $wordfile) msgbox(0,"",@error) ; error returned is a 2 if i manually save the file to the desktop then everything works for some reason the open can not find the file that is open on the desktop Link to comment Share on other sites More sharing options...
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