Share via


MarkForDownload Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.  

OlRemoteStatus

OlRemoteStatus can be one of these OlRemoteStatus constants.
olMarkedForCopy The item will be copied to the remote site.
olMarkedForDelete The item will be deleted.
olMarkedForDownload The item will be downloaded in its entirety.
olRemoteStatusNone The item has no remote status.
olUnMarked The item isn't marked for remote status and will be disregarded.

expression.MarkForDownload

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

The following subroutine sets the MarkForDownload property of all e-mail items sent by a specified user to olMarkedForDownload. All items from the specified user will then be downloaded in their entirety.

  Sub RemoteUse(ByVal strSender As String, ByRef objMail As MailItem)
'Marks all items from a certain user to be downloaded

    With objMail
        'If mail is from the sender, mark it for download
        If .SenderName = strSender Then
            .MarkForDownload = olMarkedForDownload
        End If
    End With

End Sub