A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Macro to do a send/receive on specific group



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 21st 09, 07:08 AM posted to microsoft.public.outlook.program_vba
CAM
external usenet poster
 
Posts: 12
Default Outlook Macro to do a send/receive on specific group

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
  #2  
Old May 21st 09, 03: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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I want birthdays from a specific group to go to a specific calend. Rachelle Outlook - Using Contacts 1 March 14th 08 05:26 PM
Adding Send/Receive Group to IconBar Jack B. Pollack Outlook - General Queries 0 November 28th 07 02:40 PM
Send/Receive Group Settings vs CIW Outlook 2003 patgdube Outlook - Installation 1 November 2nd 06 05:14 PM
can't edit send/receive group ldownes Outlook - Installation 0 June 25th 06 01:51 AM
how add send and receive group in OutLook 2003 ? fred Outlook - Installation 2 April 26th 06 04:58 PM


All times are GMT +1. The time now is 08:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.