Outlook Macro to do a send/receive on specific group

C

Cam

I have multiple email accounts setup in Outlook XP and want to split them
into groups. I want to have buttons assigned for each group that will run a
Macro to undertake a send/receive on that particular group only. I would be
grateful for any sample code to assist.

Thanks.
 
K

Ken Slovak - [MVP - Outlook]

For that use the NameSpace.SyncObjects collection and get the desired
SyncObject, which is one of your send/receive groups, then call Start() on
that SyncObject. Each SyncObject has a Name property that can be used to
identify it. Where there's only one send/receive group for example, that
Name would be "All Accounts" (the default send/receive group).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top