Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 17th, 2006, 06:06 AM
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Word - Merge print/save mat41 Classic ASP Professional 0 October 26th, 2008 06:12 PM
Programatic word merge fizzerchris Access VBA 3 September 20th, 2007 09:12 PM
Word Merge with Access VBA echovue Access 6 May 5th, 2006 05:11 PM
Merge to word from excel Kevinsharrison Access VBA 1 April 26th, 2005 07:40 AM
Access OLE Merge to Word GregoryHu Access VBA 5 May 7th, 2004 10:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.