【发布时间】:2019-01-09 12:32:49
【问题描述】:
我将工作簿中的一系列单元格发送到 Outlook。
我对来自 Ron de Bruin http://www.rondebruin.nl/win/s1/outlook/bmail3.htm 的以下宏稍作调整。
现在是这样(只是我编辑的部分):
With Sendrng
.Parent.Select
Set rng = ActiveCell
.Select
ActiveWorkbook.EnvelopeVisible = True
With .Parent.MailEnvelope
With .Item
.To = ""
.CC = ""
.Subject = "XXX"
'.Attachments.Add ("C:\test.txt")
.Display
.Save
.Close olPromtForSave
End With
End With
我想设置 .To = "K1" 和 .CC = "M1:M4"。这些是来自同一个活动工作簿的单元格。对此链接中的 cell.Value 和 For Each cell In Columns("K") 进行一些调整不起作用http://www.rondebruin.nl/win/s1/outlook/bmail5.htm。
【问题讨论】: