How to set default email message form to my custom form?

K

Kenneth

Hi,

I have created a custom email message form, modified copy of the default
message form. I would like this to be my default form when sending an email
message. Is this possible? If not, what is the simplest way to use my
custom form instead of the default?
 
S

Sue Mosher [MVP-Outlook]

Using a published custom form as the default for messages is a bad idea. It
is likely to cause problems with attachments for non-Outlook recipients. If
you insist, however, see http://www.outlookcode.com/article.aspx?ID=39.

Better yet, give us some idea what functionality this custom form adds to
your messgaes and someone may be able to suggest a way to get what you want
without a custom form.
 
K

Kenneth

Well, I have a request to make the SUBJECT line mandatory so a person won't
forget to enter a subject line for the email. Any ideas?
 
S

Sue Mosher [MVP-Outlook]

You can do that with Outlook VBA code. For example:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
If Item.Subject = "" Then
Cancel = True
MsgBox "Please fill in the subject before sending.", _
vbExclamation, "Missing Subject"
End If
End Sub

For a more elaborate version that also checks for expected attachments, see
http://www.outlookcode.com/codedetail.aspx?id=553

And see http://outlookcode.com/article.aspx?id=49 if you're just getting
started with Outlook VBA.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top