Link to home
Start Free TrialLog in
Avatar of mmv1
mmv1

asked on

Copy From one word doc to other & Passing Value to word from VB

How  to copy "a page" from one word document to other word document from VB6 code.
And
How to pass the values to the WORD documents from visual basic source.
Its already predefined letter document.
i need to pass only the address to the approprite fields.
how to do that.

Avatar of Dabas
Dabas
Flag of Australia image

Hi mmv1

First question:
I suggest that through code you higlight (select) the text in the first document, copy to clipboard then paste it in the other one.
Please let me know if you have trouble writing this code

Second question:
When you say fields, do you mean form fields?

Dabas
Avatar of mmv1
mmv1

ASKER

1. S, i dont know how to do the select a PAGE and Copy to the New Word Document(New.Doc). Bcas i have 20word documents. I need to open a Empty Document and open the 1.doc to Copy and Paste in the "New.DOC" first page. And after that i need open 3.doc and copy and paste into the Next page of "New.Doc".

2.  I have some default setting for the letter format.
In the Address line 1,2,3,4,5 etc i will get from the Database. so that i will send the real values from VB to the word document and make that letter completed.
ie.i am not sending the whole word document from vb just sending 5 to 6 Values.
 
ASKER CERTIFIED SOLUTION
Avatar of Dabas
Dabas
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi mmv1,
This old question (QID 20570059) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
A request for deletion or PAQ has been made.  If no response or you feel this is in error, comment.  If no objection, I or another Moderator will handle this question in three days.

Computer101
E-E Admin
Note to Moderator:
I disagree with the request.
The question was answered, a clarification asked, and answered again. mmv1 had the opportunity to ask for further clarification or explain why my answer did not help

Dabas
Dabas,

I am in agreement. The question will not be deleted; however, it appears that the user has a duplicate account, so it will be a day or two before I finalize this question. Feel free to leave a comment here in a day or so if it isn't closed.

Netminder
EE Admin
Netminder,
> Feel free to leave a comment here in a day or so if it isn't closed.

I feel free. :-)

Dabas
Free at last, free at last, thank ... oh, wait... wrong forum... *grin*

I've force-accepted to close the question.

Netminder
EE Admin
Netminder,
Thanks Freely! :-)}

Dabas