【发布时间】:2020-06-25 17:08:31
【问题描述】:
以下是我发送电子邮件的宏,但它不会打开新电子邮件。
此宏在 Outlook 规则中。
你有什么想法吗?
Sub sendemail()
Dim ns As NameSpace
'Dim newMail As Outlook.MailItem
Set ns = GetNamespace("MAPI")
Dim newMail As MailItem
Set newMail = Application.CreateItem()
With newMail
.To = "aaa@bbb" <--adress to whitch I want to send an email
.Subject = "test"
.Display
End With
Set newMail = Nothing
End Sub
【问题讨论】:
-
不可能在规则中调用this。 stackoverflow.com/questions/39472855/…
-
您可以删除这个问题和stackoverflow.com/questions/39472855/… 以确保第三个问题不会因为重复而关闭。如果您被要求或有更多详细信息,只需编辑第三个。 stackoverflow.com/questions/39484303/…