Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
objitem.unread = @falseThe following code works for me.
olFolderInbox=6 ;constant DO NOT CHANGE MSapp = ObjectOpen ("Outlook.Application") objNameSpace = MSapp.GetNamespace("MAPI") objFolder = objNameSpace.GetDefaultFolder(olFolderInbox); 'Access the Inbox objFolder.Display objcount=objFolder.Items mycount=objcount.Count;checks number of messages in inbox! For xx = 1 to mycount objitem=objFolder.Items(xx) myText = objitem.Subject objitem.UnRead = @False message(StrCat("Message with subject: ",mytext), "Marked as Read") Next ObjectClose(MSapp) exit
Article ID: W16093
File Created: 2004:03:30:15:42:50
Last Updated: 2004:03:30:15:42:50