Outlook--Making an Attachment Name the Message Subject
Add code to a custom form to make the attachment name become the message subject.
Sue Mosher
September 9, 2001
1 Min Read
When someone attaches a file to my custom form, how can I have Outlook automatically use the filename as the subject for the message?
Outlook 2000 added an AttachmentAdd event, which earlier versions don't have. Add the code in Listing 1 to your form to have it automatically set the subject to the name of the first attachment added, unless the user has already entered something in the Subject box.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like