GodFlash Posted January 18, 2022 Share Posted January 18, 2022 Hi, i want to copy a text from a word doc to clipboard and later inside another doc exampe with txt files: $DateiOeffnen = FileOpen ("Text2.txt") Sleep(100) $copy = FileRead($DateiOeffnen) Sleep(100) ClipPut($copy) Sleep(100) Send ("^{v}") if i change the file to "Test.docx" there is no copy of the text inside the docx. How can i read the word file correctly? Link to comment Share on other sites More sharing options...
Luke94 Posted January 18, 2022 Share Posted January 18, 2022 You'd need to use the Word UDF to open the document. _Word_DocRangeSet to select all the text and then .Text on the range object to save to a variable. 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