J
Joe
I am using Word 2000 and trying to add subdocuments. The format of the
subdocumemts gets messed up when more than 125 subdocuments are added.
The header and paragraph alignment is messed up. Following is the code
used in my VB app. Any help is appreciated. Thanks.
with objMSWord
.Documents.Open "\proj.doc", , , False
.ActiveWindow.ActivePane.View.Type = wdMasterView
With .ActiveDocument.Subdocuments
.Expanded = True
With objMSWord.ActiveWindow.ActivePane.Selection
.EndKey wdStory
End With
End With
Do While Not grsBuffer.EOF
.ActiveDocument.Subdocuments.AddFromFile (strFileName)
loop
end with
subdocumemts gets messed up when more than 125 subdocuments are added.
The header and paragraph alignment is messed up. Following is the code
used in my VB app. Any help is appreciated. Thanks.
with objMSWord
.Documents.Open "\proj.doc", , , False
.ActiveWindow.ActivePane.View.Type = wdMasterView
With .ActiveDocument.Subdocuments
.Expanded = True
With objMSWord.ActiveWindow.ActivePane.Selection
.EndKey wdStory
End With
End With
Do While Not grsBuffer.EOF
.ActiveDocument.Subdocuments.AddFromFile (strFileName)
loop
end with