Platform SDK: CDO 1.2.1 |
The Name property returns or sets the name of the Recipient object as a string. Read/write (read-only for a recipient on a message in the Inbox).
objRecip.Name
The Name property is the default property of a Recipient object, meaning that objRecip is syntactically equivalent to objRecip.Name in Microsoft® Visual Basic® code.
String
The Name property returns an empty string if it has never been set or cannot be found.
Dim strMsg As String ' ... validate objects ... then display strMsg = "Recipient address = " & objRecip.Address strMsg = strMsg & "; Recipient name = " & objRecip.Name MsgBox strMsg ' display recipient parts