How can I make Subject: box entry required?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

A user wants to make the Subject: box entry in a new message a required
field. He wants Outlook to warn him so he cannot send a new message without
a Subject: box entry.
 
There is no such feature, but you can build it in with a little VBA code:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

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

For VBA basics, see http://www.outlookcode.com/d/vbabasics.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
How do you get the "Introduction" box under the subject box?

Sue Mosher said:
There is no such feature, but you can build it in with a little VBA code:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

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

For VBA basics, see http://www.outlookcode.com/d/vbabasics.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
In what context? Are you referring to the Introduction box that appears when you use the File | Send command in Word or Excel? How does that relate to the topic under discussion?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Gryphonron said:
How do you get the "Introduction" box under the subject box?
 
Sue, Thanks for responding. You just seemed to know a lot about outlook. I
want to use the introduction box when I send out my newsletters but to send
them to individual recipients the only way I can figure out to do it where
they get WYSIWYG is to create the document in a table (otherwise it gets
totally jumbled and publisher doesn't use the same merge system), then filter
my list in Outlook and use the "merge to" feature. Using this route, I can't
get the introduction box.
I also get a locked files warning that requires me to hit enter for every
recipient (pretty tedious to 500+). Thanks for any help you can give me.
Rp
 
Why not just build the introduction into the newsletter document, formatted however you want, and then perform a regular Word mail merge to email? That's likely to produce better results than trying to force another feature into a use it wasn't designed for.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Gryphonron said:
Sue, Thanks for responding. You just seemed to know a lot about outlook. I
want to use the introduction box when I send out my newsletters but to send
them to individual recipients the only way I can figure out to do it where
they get WYSIWYG is to create the document in a table (otherwise it gets
totally jumbled and publisher doesn't use the same merge system), then filter
my list in Outlook and use the "merge to" feature. Using this route, I can't
get the introduction box.
I also get a locked files warning that requires me to hit enter for every
recipient (pretty tedious to 500+). Thanks for any help you can give me.
Rp
 
Back
Top