Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2007, 06:27 AM
Registered User
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy a document to another

Hi,
If a document has been opened via VBA and a mail merge operation undertaken. How can a second or third document be opened, the entire contents copied to the first.
Ta
Bill

 
Old March 31st, 2007, 06:44 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

1. Place a book mark in the first document

2. oWD2.Content.Copy Destination:=oWD1.Bookmarks(1)

3. oWD3.Content.Copy Destination:=oWD1.Bookmarks(2)

Cheers
Shasur




http://www.vbadud.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open document, Open second doc and copy to first justabeginner Word VBA 1 March 7th, 2007 02:47 AM
Copy folders surendran PHP How-To 2 July 25th, 2006 10:36 PM
How to copy text MICZ Pro VB 6 5 October 29th, 2004 09:57 AM
COPY CONSTRUCTORS gbilios C++ Programming 4 April 30th, 2004 02:51 AM
xslt copy-of ppeou XSLT 5 August 24th, 2003 07:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.