M
mkboynton via OfficeKB.com
Can someone tell me why this does not write to the message body? I am
stumped! I have placed it in the ThisOutlookSession.
Public WithEvents colInsp As Outlook.Inspectors
Public WithEvents objInsp As Outlook.Inspector
Public Sub Initialize_handler()
Set colInsp = Application.Inspectors
End Sub
Private Sub colInsp_NewInspector(ByVal Inspector As Inspector)
Dim OrigBody
Dim objItem As Object
Set objInsp = Inspector
Set objItem = objInsp.CurrentItem
If objItem.Subject = "FL DAILY INBOUND SHEET.xls" Then
OrigBody = objItem.HTMLBody
objItem.HTMLBody = "<HTML><H3>" & Format(Date, "MMM. DD, YYYY") &
"</H3></HTML>" & OrigBody
End If
End Sub
stumped! I have placed it in the ThisOutlookSession.
Public WithEvents colInsp As Outlook.Inspectors
Public WithEvents objInsp As Outlook.Inspector
Public Sub Initialize_handler()
Set colInsp = Application.Inspectors
End Sub
Private Sub colInsp_NewInspector(ByVal Inspector As Inspector)
Dim OrigBody
Dim objItem As Object
Set objInsp = Inspector
Set objItem = objInsp.CurrentItem
If objItem.Subject = "FL DAILY INBOUND SHEET.xls" Then
OrigBody = objItem.HTMLBody
objItem.HTMLBody = "<HTML><H3>" & Format(Date, "MMM. DD, YYYY") &
"</H3></HTML>" & OrigBody
End If
End Sub