R
Ray
I have created the following code to read the subject from mail in the
Folder called MyHistory ( a sub folder of Inbox)
Sub CheckAutoArchive()
Dim objH As MAPIFolder, objItems As Outlook.Items
Dim objItem As Outlook.MailItem
Dim x, y, Ans
Set objG =
Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders("My
History")
Set objItems = objH.Items
For Each objItem In objItems
Ans = objItem.Subject
Debug.Print Ans
Next
End Sub
I cannot figure out how to read or set the "Do Not AutoArchive this item"
property which is in the "File, Properties" dialog box.
Can anyone help?
Thanks
Ray Hobby
Folder called MyHistory ( a sub folder of Inbox)
Sub CheckAutoArchive()
Dim objH As MAPIFolder, objItems As Outlook.Items
Dim objItem As Outlook.MailItem
Dim x, y, Ans
Set objG =
Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders("My
History")
Set objItems = objH.Items
For Each objItem In objItems
Ans = objItem.Subject
Debug.Print Ans
Next
End Sub
I cannot figure out how to read or set the "Do Not AutoArchive this item"
property which is in the "File, Properties" dialog box.
Can anyone help?
Thanks
Ray Hobby