Thread: [Solved] Mail Merge Events
View Single Post
 
Old 04-18-2018, 03:29 AM
catflap's Avatar
catflap catflap is offline Windows 7 64bit Office 2013
Advanced Beginner
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default

Thanks for your response.

I'm aiming to use this for any document, so I can't really put it in the ThisDocument code. I did try it anyway, but it still didn't fire there either.

There's not really any code at the moment, I'm just trying to see if I can get anything to trigger before going further, so for now it's just:

Code:
Private Sub app_MailMergeBeforeMerge(ByVal Doc As Document, ByVal StartRecord As Long, ByVal EndRecord As Long, Cancel As Boolean)

    MsgBox "Merge has started."

End Sub
I'm declaring app in my class module:

Code:
Public WithEvents app As Word.Application
Reply With Quote