Mailmerge script Word 2003

G

Guillermo

This script worked perfectly in WORD-97 but not in WORD 2003

I am running it from a VB macro with

WORD.Documents.Open FileName:="U:\Attachmate\Macros\Number change\pcl.dot"

WORD.Run MacroName:="chqrp"


Sub chqrp()
'
' chqrp Macro
' Macro 29/07/04 by Guillermo
'
With ActiveDocument.MailMerge
.Destination = wdSendToPrinter
.MailAsAttachment = False
.MailAddressFieldName = ""
.MailSubject = ""
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=True
End With
End Sub

I haven't the experience and am not given the time to learn this properly,
so if anyboy could help I would be really greatful.
 
G

Guillermo

Tanks Peter, I don't have a problem anymore. I just recorded a mailmerge
action sequence and copied the code into a custom macro.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top