Thread: [Solved] VBA to open files in Word
View Single Post
 
Old 07-26-2011, 12:04 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Lu Argentina,

Looping through a set of files, opeing & closing them is reasonably straightforward. See the code I posted here: https://www.msofficeforums.com/vba/8...documents.html
However, your code suggests you're not copying the whole document and it gives no indication of where in 'Documento2' the copied material is to be inserted. You need to clarify those issues.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote