Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple copies of template in one document

2 views
Skip to first unread message

jebe...@yahoo.com

unread,
Feb 29, 2008, 6:08:02 PM2/29/08
to
I am loading a template with data from SQLServer in VB6. I don't know
how long the document might be until I retrieve the data. I need to
be able to insert multiple copies of the same 1-page template into a
document if my line items are too numerous to fit in the first page.

This code will create my first page:

'MS Word
Dim oWord As Object
Dim oDoc As Object

Set oWord = CreateObject("word.application")

'Open a new document from a template file.
Set oDoc = oWord.Documents.Add(App.Path & "\Example2.dot")

But how do I insert the second (and more) pages?

0 new messages