我有一个包含给定数据的工作表,

我需要使用Micorosft outlook以特定日期所需的格式通过电子邮件发送数据(比如说日期是2015年1月5日).请参阅下面

这就是电子邮件的外观,

我是业余开发人员,通过VBA格式化电子邮件.代码是在Excel 2007工作簿的模块中编写的,在这里,
Run Code Online (Sandbox Code Playgroud)Public Function FormatEmail(Sourceworksheet As Worksheet, Recipients As Range, CoBDate As Date) Dim OutApp As Object Dim OutMail As Object Dim rows As Range On Error GoTo FormatEmail_Error Application.ScreenUpdating = False Set OutApp = CreateObject("Outlook.Application") For Each rows In Recipients.Cells.SpecialCells(xlCellTypeConstants) If rows.value Like "?*@?*.?*" Then Set OutMail = OutApp.CreateItem(0) On Error Resume Next With OutMail .To = rows.value .Subject = "Reminder" .Body = "Hi All, " & vbNewLine & _ vbNewLine .display End With On …