good morning ! i just working to merge a word document with a txt too . when i used the lette type of the MainDocumentType option ,the doc file is created by succes , but when i would to change to catalogue option
Code:
With ActiveDocument.MailMerge
Code:
.Destination = wdSendToNewDocument
.MailAsAttachment = False
.MailAddressFieldName = ""
.MailSubject = ""
.SuppressBlankLines = True
Dim oAutoText
Set oAutoText = AppWord.NormalTemplate.AutoTextEntries.Add _
("MyLabelLayout", ActiveDocument.Content)
.MainDocumentType = 3 '3 = wdCatalog
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute True
oAutoText.Delete
End With
at the openning of the word document it's close just after.
thank's for your generious help
Aicha ! juste me