0
我有以下代碼,其中SenderName MailItem屬性顯示爲空白。在Application_ItemSend中缺少Outlook MailItem屬性
Private Sub Application_ItemSend(ByVal MyItem As Object, Cancel As Boolean)
Dim res As Integer
' The "Class" MailItem property is found
If MyItem.Class = olMail Then
' This is coming up blank
' The "SenderName" MailItem property is not apparent
MsgBox MyItem.SenderName
res = MsgBox("Archive outgoing email?", vbQuestion + vbYesNo, "XYZ")
If res = vbYes Then
Call ProcessIt(MyItem)
Else
Cancel = True
End If
End If
End Sub
一些小學生的錯誤也許會和欣賞指針,我失蹤了。
展望2013 Windows 7的