V
Vasile
Hello !
I'm trying to read the mailmerge fields values using the
following VBA code:
If ActiveDocument.MailMerge.MainDocumentType =
wdFormLetters Then
Dim strtmp As String
For Each f In
ActiveDocument.MailMerge.DataSource.FieldNames
strtmp = CStr
(ActiveDocument.MailMerge.DataSource.DataFields
(f.Name).Value)
'...
Next
End If
The problem is that if the lenght of merge field's value
is greater than 255 chars then
ActiveDocument.MailMerge.DataSource.DataFields
(f.Name).Value returns only the first 255 characters.
Is this a known bug or is there any workaround for this?
Many thanks,
Vasile
I'm trying to read the mailmerge fields values using the
following VBA code:
If ActiveDocument.MailMerge.MainDocumentType =
wdFormLetters Then
Dim strtmp As String
For Each f In
ActiveDocument.MailMerge.DataSource.FieldNames
strtmp = CStr
(ActiveDocument.MailMerge.DataSource.DataFields
(f.Name).Value)
'...
Next
End If
The problem is that if the lenght of merge field's value
is greater than 255 chars then
ActiveDocument.MailMerge.DataSource.DataFields
(f.Name).Value returns only the first 255 characters.
Is this a known bug or is there any workaround for this?
Many thanks,
Vasile