Outlook macro to prompt user info

CodeQrius picture CodeQrius · Dec 17, 2010 · Viewed 9.9k times · Source

I want to create a macro for Outlook that will prompt the user to enter their name in an input box, when they hit Send. Once they input the info and click Ok, I want to Append the name to the end of the message and then let the message go. Any ideas?

Answer

Shoban picture Shoban · Dec 17, 2010
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
SenderName = InputBox("Please enter your name")
Item.Body = Item.Body + SenderName
End Sub

This is a simple script to do the job.