You should name the document as a variable as you open it.
Code:
Dim oDoc as Object
Set oDoc = objWord.Documents.Open(strPath)
Then you can copy the document's range to the clipboard
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Last edited by Charles Kenyon; 09-13-2022 at 05:00 AM.
|