I use this code in a Word MACRO to merge with the doc
Code:
Sub CatMerge()
'
' CatMerge Macro Macro recorded 3/15/2004 by pmh
'
ActiveDocument.MailMerge.OpenDataSource Name:= _
"C:\catsys\mail\catmergeprop.txt", ConfirmConversions:=False, ReadOnly:=False _
, LinkToSource:=True, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", WritePasswordDocument:="", WritePasswordTemplate:= _
"", Revert:=False, Format:=wdOpenFormatAuto, Connection:="", SQLStatement _
:="", SQLStatement1:=""
With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=False
End With
End Sub
Is there any way to do this in code behind the scenes?
cheers Catman
