Hi all,
I have just installed Word 2003 and have to say that if the solution for my question below not found I will uninstall it.
I use many macros to generat series of documents.
I would like to know how to cycle though the mailmerge datasource and how to detect the endof cycle.
Normally when I use mailmerge.datasource.activerecord=wdnextrecord it moves the recordpointer in datasource to next record.
But when I issue the command on the last record, it does not announce any error.
If I try to issue mailmerge.datasource.activerecord=wdlastrecord the recordpointer is not changed.
How I can than loop though all the records in datasource?
Many thanks
Vladimir
I have just installed Word 2003 and have to say that if the solution for my question below not found I will uninstall it.
I use many macros to generat series of documents.
I would like to know how to cycle though the mailmerge datasource and how to detect the endof cycle.
Normally when I use mailmerge.datasource.activerecord=wdnextrecord it moves the recordpointer in datasource to next record.
But when I issue the command on the last record, it does not announce any error.
If I try to issue mailmerge.datasource.activerecord=wdlastrecord the recordpointer is not changed.
How I can than loop though all the records in datasource?
Many thanks
Vladimir