p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Excel VBA (http://p2p.wrox.com/forumdisplay.php?f=79)
-   -   Outlook is not able to recieve messages(Excel Macr (http://p2p.wrox.com/showthread.php?t=3722)

greatmanu September 10th, 2003 12:23 PM

Outlook is not able to recieve messages(Excel Macr
 
Set objOutlook = CreateObject("Outlook.Application")
    Set objMapiName = objOutlook.GetNamespace("MAPI")
    Set objFolder = objMapiName.GetDefaultFolder(olFolderInbox)
cnt = objFolder.Items.Count
If cnt = 0 Then Label1.Visible = True...etc..etc



This program doesn't cause Outlook to
actually check for new messages.If there are messages in the inbox it tries to read the one alraedy downloaded.Please help me to find a code for actually receive new messages



All times are GMT -4. The time now is 01:16 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.