View Single Post
  #1 (permalink)  
Old October 17th, 2006, 06:06 AM
chichiboof chichiboof is offline
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chichiboof Send a message via Yahoo to chichiboof
Default Merge Word with catalogue option

 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
Reply With Quote