Hi Karen,
I did this once with CTRL+A and CTRL+C over WSH. Not elegant but it did the job :-)
#DEFINE WSNORMAL 1
WshShell = CreateObject([wscript.Shell])
WshShell.Run([WinWord],WSNORMAL)
WshShell.SendKeys([^a])
WshShell.SendKeys([^c])
WshShell.SendKeys([%{F4}])
?_cliptext
>I would like to convert .doc into plain text - i have opened the doc - how can i transfer the text to my m.txt file? Perhaps there is a more direct route than the one i have started.
>
>many thanks
>k
>
>
>objWord = CreateObject("Word.Application")
>objWord.Documents.Open ("C:\mydirectory\mydata.doc")
>objWord.visible = .F.
>
>??? move text to m.txt
>
>modify file m.txt
>
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011