Muhammad Saleh
Muhammad Saleh

Reputation: 29

Is it possible to capture that "Send/Receive" event programmatically using VSTO?

Click event of send and receive ribbon in outlook add-in any method or event to trigger any code on this event

Upvotes: 1

Views: 283

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

Use the Application.Session.SyncObjects collection to retrieve the very first item (it is "All Accounts"), and use SyncObject.SyncStart / SyncEnd events.

See https://learn.microsoft.com/en-us/office/vba/api/outlook.syncobject

Upvotes: 2

Related Questions