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