Updating email subject in Outlook VBA
问题 I am trying to create a button-controlled macro that would change the topic of an email message. Following this thread I've managed to came up with this: Public Sub Confidential() Dim Item As Outlook.MailItem Dim oInspector As Inspector Dim strSubject As String Set oInspector = Application.ActiveInspector If oInspector Is Nothing Then Set Item = Application.ActiveExplorer.Selection.Item(1) Else Set Item = oInspector.CurrentItem End If strSubject = Item.Subject ' Remove previous Confidential