MailSubject 属性 (Word)MailMerge.MailSubject property (Word)

返回或设置用于邮件合并目标文档是电子邮件的主题行。Returns or sets the subject line used when the mail merge destination is electronic mail. 读/写 StringRead/write String.


expressionexpression. MailSubject

_表达式_一个返回 "邮件合并" 对象的表达式。expression An expression that returns a 'MailMerge' object.


本示例将名为 "提供 .doc" 的文档与附加的数据文档合并。This example merges the document named "Offer.doc" with its attached data document. 结果将发送到存储在 EmailNames 合并域中的电子邮件地址, 并且邮件的主题为 "惊人优惠"。The results are sent to the email addresses stored in the EmailNames merge field, and the subject of the mail message is "Amazing Offer."

With Documents("Offer.doc").MailMerge 
 .MailAddressFieldName = "EmailNames" 
 .MailSubject = "Amazing Offer" 
 .Destination = wdSendToEmail 
End With

另请参阅See also

邮件合并对象MailMerge Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.