View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Change Date code to yesterday/day before ,,,,

Don't know what you posted three times but try

Sub dodate()
MsgBox "My recap" & " " & Format(Now, "mmm-dd-yy ddd")
MsgBox "My recap" & " " & Format(Date - 1, "mmm-dd-yy ddd")
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"J.W. Aldridge" wrote in message
...
How to change this portion:

& Format(Now, "mmm-dd-yy ddd")

of the line to reflect the day before today or yesterday?

(Full line here)
.Subject = "My recap" & " " & Format(Now, "mmm-dd-yy ddd")