View Single Post
  #4   Report Post  
Peter Jamieson
 
Posts: n/a
Default

As far as I know there is only one reasonably reliable way to run a
user-defined macro during a merge and that's to use the mailmerge events,
which are only available in Word 2002 or later. If that's your scenario you
would typically put the comparison code directly in the
MaiMergeBeforeRecordMerge event code, but you could of course bookmark or
otherwise discover the result of the IF field in the event code and act on
it.

Peter Jamieson

"Larry Cohen via OfficeKB.com" wrote in message
...
Does anyone know if it is possible to have an IF...THEN test on a
mailmerge
mergefield, and if the result is positive, automatically run a macro?
For example, IF mergefield data_10 is blank, run macro "removerow"

--
Message posted via http://www.officekb.com