今天是2013年2月27日这是Wensday。 我需要一个公式,它会返回我前一个星期一的日期。这将是(2013年2月17日)上个星期一的日期Excel
我需要这样才能用于发送电子邮件的vba代码中的文件名或电子邮件主题。
With oMail
'Uncomment the line below to hard code a recipient
.To = "[email protected]"
'Uncomment the line below to hard code a subject
.Subject = "Current Report"
.Attachments.Add WB.FullName
.Display
End With
那么,你到目前为止尝试过什么?如果你还没有尝试过任何东西,那么也许这会让你开始:http://msdn.microsoft.com/en-us/library/aa227527(v=vs.60).aspx – Sam 2013-02-27 16:05:49
@Sam,你的链接缺失一个右括号。 – 2013-02-27 16:07:52
@DougGlancy是吗?这个对我有用。我无法使用内置的SO链接功能,因为MSDN链接本身包含括号。在编辑之前你有没有看到它? – Sam 2013-02-27 16:12:34