As Paul says, you need to create a new module as he has shown and you put the line (and nothing else required) in that new module.
The macrowithout that line goes in the ThisOutlookSession module, shown at the top of the folder list in Paul's illustration.Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) strSubject = Item.Subject MsgBox (strSubject) UserForm1.Show End Sub
The macrogoes in the Userform code. The userform will then show when you click 'Send' on a message.Private Sub ButtonOK_Click() MsgBox strSubject End Sub