Hi all,
I have looked everywhere on the web to no avail. So here I am and I'll try to explain the problem as clearly as possible.
I have a doc file with merge fields and when the doc file opens it links to an excel file to get the data (excel file is not opened in any event). I also disabled the sqlquery thing in the registry so that it doesn't ask me about allowing the sql command. After the doc file is shown, it shows the word file and in the toolbar there is a mail merge toolbar with all sorts of buttons and icons. As the arrow keys in the mailmerge toolbar to move back or forward through the record is clicked, the number in the textbox inbetween the arrow keys changes accordingly and also the merge fields that have a link to the excel file updates as that number changes.
Now my question: is there a way to trap that change event (of clicking on the arrow keys or directly changing that number) and possibly insert some text in the doc file according to what's in an excel file (not merge fields)? or do I maybe have to open the excel file in the background? In any case, trapping that event is more of a primary concern for me.
Please help me.
I have looked everywhere on the web to no avail. So here I am and I'll try to explain the problem as clearly as possible.
I have a doc file with merge fields and when the doc file opens it links to an excel file to get the data (excel file is not opened in any event). I also disabled the sqlquery thing in the registry so that it doesn't ask me about allowing the sql command. After the doc file is shown, it shows the word file and in the toolbar there is a mail merge toolbar with all sorts of buttons and icons. As the arrow keys in the mailmerge toolbar to move back or forward through the record is clicked, the number in the textbox inbetween the arrow keys changes accordingly and also the merge fields that have a link to the excel file updates as that number changes.
Now my question: is there a way to trap that change event (of clicking on the arrow keys or directly changing that number) and possibly insert some text in the doc file according to what's in an excel file (not merge fields)? or do I maybe have to open the excel file in the background? In any case, trapping that event is more of a primary concern for me.
Please help me.