Refresh IMAP folder list automatically OUTLOOK 2010

C

carl2222cc

Beginner, want to do simple task in Outlook 2010. Macro will run in
Outlook, not from elsewhere.

1) Do Send/Receive IMAP email account only....let's call it "dog"
2) Do an UPDATE FOLDER LIST. Same as when you right click your IMAP
account and select.

So far figured out the Send/Recieve, but does not do anything...doesn't
bomb either. Tried it for "All Accounts" too. Here is code:

Sub RefreshFolders()
Dim nsp As Outlook.NameSpace
Dim syc As Outlook.SyncObject
Dim strPrompt As Integer
Set nsp = Application.GetNamespace("MAPI")
Set syc = nsp.SyncObjects.Item("All Accounts")
syc.Start
End Sub


--
carl2222cc
------------------------------------------------------------------------
carl2222cc's Profile: http://www.thecodecage.com/forumz/member.php?u=2391
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=207873

http://www.thecodecage.com/forumz


--- news://freenews.netfront.net/ - complaints: (e-mail address removed) ---
 

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