![]() |
|
#2
|
||||
|
||||
|
You should name the document as a variable as you open it.
Code:
Dim oDoc as Object Set oDoc = objWord.Documents.Open(strPath) Code:
oDoc.Range.Copy
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia Last edited by Charles Kenyon; 09-13-2022 at 05:00 AM. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Make Userform Copy From One Word Document to Another | Marrick13 | Word VBA | 0 | 03-19-2018 10:45 AM |
| look for a specific word in document and copy it to the filename | sylvio | Word VBA | 4 | 03-09-2017 05:53 PM |
| Adding tables to Created word document whilst other word document open Help | rpb925 | Word VBA | 18 | 03-30-2016 04:45 PM |
| Word Document won't open | neusys | Office | 0 | 09-16-2013 12:05 AM |
Copy from one word document to another no identical
|
gmurphy | Word | 3 | 09-07-2011 04:28 AM |