D
Dominic Godin
Hi,
I have a macro in a word template that falls over with this code.
'Set object reference to this mail merge (convenience coding)
Set thisMerge = ThisDocument.MailMerge
'Setup the mail merge datasource
With thisMerge
'Set the merge type
.MainDocumentType = wdFormLetters
'Set the data source information. Falls over here!!
.OpenDataSource name:= "C:\Temp\batchmerge.csv"
.SuppressBlankLines = True
.execute
End With
The file batchmerge does exist and isn't corrupt. This works for most
of our clients. The client it falls over on is using metaframe and word
2000. I get the error can not open data source. Is this due to ODBC
settings or something. I know little about metaframe but our engineer
says that the user can see C:\Temp\batchmerge.csv.
Any ideas??
Dominic Godin
I have a macro in a word template that falls over with this code.
'Set object reference to this mail merge (convenience coding)
Set thisMerge = ThisDocument.MailMerge
'Setup the mail merge datasource
With thisMerge
'Set the merge type
.MainDocumentType = wdFormLetters
'Set the data source information. Falls over here!!
.OpenDataSource name:= "C:\Temp\batchmerge.csv"
.SuppressBlankLines = True
.execute
End With
The file batchmerge does exist and isn't corrupt. This works for most
of our clients. The client it falls over on is using metaframe and word
2000. I get the error can not open data source. Is this due to ODBC
settings or something. I know little about metaframe but our engineer
says that the user can see C:\Temp\batchmerge.csv.
Any ideas??
Dominic Godin