I would like feed name and address info out of FoxPro into MS-Word's LetterWizard to allow a client to automatically start a new letter. I have looked at the MS-Word help where they talk about using the CreateLetterContent method to create a LetterContent object, but this requires filling in all of the arguments when I only want to fill in a few. They suggest, "If you want to set only a few properties, use the New keyword to create a new, stand-alone LetterContent object." I don't understand how to translate the VB example they give,
Set myLetter = New LetterContent
With myLetter
.AttentionLine = "Read this"
.EnclosureNumber = 1
.Letterhead = True
.LetterheadLocation = wdLetterTop
.LetterheadSize = InchesToPoints(2)
End With
Documents.Add.RunLetterWizard LetterContent:=myLetter, _
WizardMode:=True
Thanks
Set myLetter = New LetterContent
With myLetter
.AttentionLine = "Read this"
.EnclosureNumber = 1
.Letterhead = True
.LetterheadLocation = wdLetterTop
.LetterheadSize = InchesToPoints(2)
End With
Documents.Add.RunLetterWizard LetterContent:=myLetter, _
WizardMode:=True
Thanks