Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 9th, 2007, 06:27 AM
Registered User
 
Join Date: Jul 2004
Location: Auckland, , New Zealand.
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

Reply With Quote
  #2 (permalink)  
Old March 31st, 2007, 06:44 AM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:49 AM.


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