Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining 2 Word 2000 documents

Status
Not open for further replies.

tbalazs

IS-IT--Management
Dec 18, 2000
158
GB
I would like to add a macro button to all Word documents so that clicking it will add a cover sheet, which is an unchanging Word document saved on the hard drive. The problem is that the cover sheet and the main document might have very different formatting, so they need to occupy different sections.

Could anyone suggest how best to proceed?

Thanks.

Tony.
 
This is a suggestion that I have not really tested, and you will have to work with the filenames and ranges and such.

Take you cover sheet and insert a page break at the end. Save it to the desktop. Then go to your other sheet (main) and put the button in. The subroutine it will call will work something like this psuedo code:

document("c:\Desktop\coversheet.DOC").open

Select the range including the page break

Selection.Copy
Document("MAIN.DOC").Activate

Move the cursor to the beggining of the document

Selection.Paste

I hope this is enough to help you out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top