View Single Post
  #2  
Old May 21st 09, 02:40 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Macro to do a send/receive on specific group

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).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Cam" wrote in message
...
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.


Ads