Set OutApp = CreateObject("Outlook.Application")
MsgBox (OutApp Is Nothing)
On Error GoTo errorHandler
Set OutMail = OutApp.CreateItem(0)
'OutMail.Parent.Display '****
On Error Resume Next
With OutMail
.To = cell.Value
.Subject = "Subject"
.Body = "Body"
.Se
End With
On Error GoTo errorHandler
Set OutMail = Nothing
如果我想发送电子邮件,我必须取消注释该OutMail.Parent.Display
行。为什么我应该通过让 Outlook 可见来惹恼用户呢?这是安全设置还是什么?