Skip to content

Latest commit

 

History

History
78 lines (41 loc) · 1.66 KB

Outlook.ContactItem.MarkForDownload.md

File metadata and controls

78 lines (41 loc) · 1.66 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ContactItem.MarkForDownload property (Outlook)
vbaol11.chm1086
vbaol11.chm1086
Outlook.ContactItem.MarkForDownload
8d5f49e4-7941-47f7-e6f1-b2ddc145d0d4
06/08/2017
medium

ContactItem.MarkForDownload property (Outlook)

Returns or sets an OlRemoteStatus constant that determines the status of an item once it is received by a remote user. Read/write.

Syntax

expression. MarkForDownload

expression A variable that represents a ContactItem object.

Remarks

This property gives remote users with less-than-ideal data-transfer capabilities increased messaging flexibility.

Example

The following example searches through the user's Inbox for items that have not yet been fully downloaded. If any items are found that are not fully downloaded, a message is displayed and the item is marked for download.

Sub DownloadItems() 
 
 Dim mpfInbox As Outlook.Folder 
 
 Dim obj As Object 
 
 Dim i As Integer 
 
 
 
 Set mpfInbox = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox) 
 
 'Loop all items in the Inbox folder 
 
 For i = 1 To mpfInbox.Items.Count 
 
 Set obj = mpfInbox.Items.Item(i) 
 
 'Verify if the state of the item is olHeaderOnly 
 
 If obj.DownloadState = olHeaderOnly Then 
 
 MsgBox ("This item has not been fully downloaded.") 
 
 'Mark the item to be downloaded. 
 
 obj.MarkForDownload = olMarkedForDownload 
 
 End If 
 
 Next 
 
End Sub

See also

ContactItem Object

[!includeSupport and feedback]