Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default Change Date code to yesterday/day before ,,,,

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")


  #2   Report Post  
Posted to microsoft.public.excel.programming
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")



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date formats change (code included) Paolo Excel Programming 9 December 1st 08 02:11 AM
macro code to open a file dated yesterday DB74 Excel Programming 4 September 9th 07 03:30 PM
VBA code for date change? (Newbie) DekHog Excel Programming 5 June 3rd 07 05:07 PM
Sub From Yesterday Josh in Tampa Excel Programming 4 October 23rd 03 04:47 PM
Code - if T changed, change date in W to date it is changed Sandy[_3_] Excel Programming 2 July 27th 03 05:33 PM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"