Dim myOlApp As New Outlook.Application
Dim myItem As Outlook.MailItem
Dim myAttachments As Outlook.Attachments
Dim cancelsend As Long
Set myItem = myOlApp.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
If myItem.Attachments.Count = 0 Then
cancelsend = MsgBox(" 是否忘記粘貼附件了 !" & vbNewLine & vbNewLine & " 確定要發送嗎?", _
vbYesNo + vbDefaultButton2 + vbQuestion, "忘記粘貼附件提示")
If cancelsend = vbNo Then Cancel = True
End If
End Sub