|
-
Jun 4th, 2000, 09:52 PM
#1
Thread Starter
Junior Member
I'd like to kwon how to programm (in VBA) to open two Word documents and to copy their text into a third one. It doesn't seem that hard to do but... I have some difficulties.
-
Jun 5th, 2000, 07:03 AM
#2
Fanatic Member
Well, you would do something similar to this.
Code:
Sub Combine()
Set NewDoc = Word.Documents.Add
NewDoc.Content = Doc1.Content & Doc2.Content
Set NewDoc = Nothing
End Sub
Where Doc1 is your first document and Doc2 is your second.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Jun 5th, 2000, 05:42 PM
#3
Thread Starter
Junior Member
Thank U. It helps me quit a lot !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|