【求助】当前活动文档自动保存并邮件发送特定邮箱代码
如标题,新手求助代码,Excle文件编辑完后,运行代码可以自动保存并作为附件发送到特定邮箱
ActiveWorkbook.Close True, ThisWorkbook.Path & "\" & brr(n, 1) & ".xlsx" '制作Document
With OutlookItem
Adress = brr(n, 3): Title = brr(n, 1) & brr(n, 2): Text = "": Send = brr(n, 4) & ";" & brr(n, 5): Document = ThisWorkbook.Path & "\" & brr(n, 1) & ".xlsx"
.To = Adress
.Subject = Title
.CC = Send
.HTMLBody = Text & pic & qm
.Attachments.Add Document
.Display
.Send '发送
End With