T
td
After opening a doc I want to select all text (excluding file headers &
footers) and copy it into a new document. I can start Word, open the required
doc & close it but I cannot seem to get the syntax of the SelectAll. What I
have is something along the lines
Dim wrd as Word.Application
Set wrd = CreateObject("Word.Application")
wrd.document.open Filename:=strFileName,ReadOnly:=True
<Want to select all text>
<Want to copy to clipboard>
I can then close the active document, paste the clipboard into a new doc &
save the new doc.
Many thanks
footers) and copy it into a new document. I can start Word, open the required
doc & close it but I cannot seem to get the syntax of the SelectAll. What I
have is something along the lines
Dim wrd as Word.Application
Set wrd = CreateObject("Word.Application")
wrd.document.open Filename:=strFileName,ReadOnly:=True
<Want to select all text>
<Want to copy to clipboard>
I can then close the active document, paste the clipboard into a new doc &
save the new doc.
Many thanks