lincschris
IS-IT--Management
I am performing a mail merge from our corporate Admin system which is exporting 2 levels of data, the second the child records of the first. To enable this to work I have exported the child level data as concatenated merge fields with a return character between rows. These merge fields are put in a single row table. My macro then interrogates each cell and if the data in the merge field contains a return character a new row is added to the table and the data is split and so on.
My problem is that this works fine if there is one or two parent records, but any more than that it seems to ignore from the merge however, if I comment out my code the merge works correctly.
I suspect that the event that I am using to run the macro is incorrect - I'm using Document_Open. Does anyone have any clues?
My problem is that this works fine if there is one or two parent records, but any more than that it seems to ignore from the merge however, if I comment out my code the merge works correctly.
I suspect that the event that I am using to run the macro is incorrect - I'm using Document_Open. Does anyone have any clues?