View Single Post
  #1 (permalink)  
Old September 10th, 2003, 12:23 PM
greatmanu greatmanu is offline
Registered User
Join Date: Aug 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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