Platform SDK: CDO 1.2.1 |
The Subject property returns or sets the subject of the message as a string. Read/write (read-only for a message in the Inbox).
objMessage.Subject
The Subject property is the default property of a Message object, meaning that objMessage is syntactically equivalent to objMessage.Subject in Microsoft® Visual Basic® code.
String
You can set the Subject property to an empty string, although that limits the ability of the recipients to sort and filter received messages.
This code fragment sets the subject of a message:
Dim objMessage As Message ' assume valid message objMessage.Subject = "Test message"