views:

10

answers:

1

Hi ,

I am working on a requirement where I have to generate word document file from template having .dot extension. I have gone through all the options available on internet but did not get the sound examples and ideas.

I am lacking information on it hence not able to go forward.

Please guide me regarding the same. I have to complete this ASAP.

A: 

From within a document:

Public Sub test()
    Dim newDocument As Document
    Set newDocument = Documents.Add("d:\mySourceTemplate.dot")
End Sub
ForEachLoop