I get that VBA in Word has a range of Event Handlers to trigger things when specific events occur in the document, but I cannot for the life of me get any of them to work at all.
I need to update a field on each record of a mail merge, but I cannot get it to run.
Here's what I have at the moment:
Private Sub Document_MailMergeRecordMerge()
ActiveDocument.Variables("SuperV").Value = ActiveDocument.MailMerge.DataSource.DataFields("Supervisor").Value
End Sub
Can anyone tell me a) where this needs to go and b) what it might need to contain to make it actually run?
If I run the subroutine manually, it works as expected on the active MailMerge record.