![]() |
|
|
|
#1
|
||||
|
||||
|
You cannot copy content from a document without opening it. That said, you could hide the documents being opened by changing:
Set oDoc = Documents.Open(strPath & strFilename) to: Set oDoc = Documents.Open(strPath & strFilename, False, True, False, , , , , , , , False) The reason for only the last document's content displaying is that the code needs to have something like: oRng2.InsertAfter vbCr oRng2.Collapse wdCollapseEnd inserted after: oRng2.Text = oRng.Paragraphs(1).Range.Text
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copying tables between Word documents | FIN | Word | 1 | 02-10-2015 05:59 PM |
| Copying Selected Text Between Word Documents | Iluvatar343 | Word VBA | 1 | 06-05-2014 05:15 AM |
Find and Replace multiple lines/paragraphs
|
jcw | Word | 1 | 11-18-2011 11:47 AM |
MS Excel 2004 for Mac - copying dates between documents
|
BCRenton | Excel | 4 | 11-10-2009 07:28 AM |
| Copying tables between Word documents best practices? | dylane | Word Tables | 0 | 12-18-2008 12:21 PM |