1
当标准不匹配时,不要做任何excel vba宏
我正在实现一个宏,它检查E列是否与当前日期相差7天。 If cell date - current date = 7 然后将包含具有匹配单元格的行的电子邮件发送到电子邮件地址以进行通知。 这是我的编码,它成功运作,除了一个问题。 Sub Workbook_Open() Dim rngStart As Range Dim rngEnd As Range Dim rngCell As Range Dim strHtmlHead As String Dim strHtmlFoot As String Dim strMsgBody As String Dim strMsg As String Dim objEmail As Object Dim OutlookApp As Object Dim …