Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help fixing date to be the past Thursday


I was wondering if someone can help me, I know some people helped me to
figure out the code so that it would come up with the date of "The most
recent thursday", but now I need it to be the header of an email in a
macro.

This is what I have right now, but it is coming up with August 11th,
instead of the 9th.

..Subject = "Thursday Reports through " & Format(Date - Weekday(Today -
4), "mmm-d-yy")

Is there something that is a little off?

Thanks,

~J


--
nbaj2k
------------------------------------------------------------------------
nbaj2k's Profile: http://www.excelforum.com/member.php...o&userid=36480
View this thread: http://www.excelforum.com/showthread...hreadid=571358

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Help fixing date to be the past Thursday

Subject = "Thursday Reports through " & Format(Date - Weekday(Date - 4),
"mmm-d-yy")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"nbaj2k" wrote in
message ...

I was wondering if someone can help me, I know some people helped me to
figure out the code so that it would come up with the date of "The most
recent thursday", but now I need it to be the header of an email in a
macro.

This is what I have right now, but it is coming up with August 11th,
instead of the 9th.

Subject = "Thursday Reports through " & Format(Date - Weekday(Today -
4), "mmm-d-yy")

Is there something that is a little off?

Thanks,

~J


--
nbaj2k
------------------------------------------------------------------------
nbaj2k's Profile:

http://www.excelforum.com/member.php...o&userid=36480
View this thread: http://www.excelforum.com/showthread...hreadid=571358



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
Fixing date of entry Colin Hayes Excel Worksheet Functions 14 May 12th 11 03:07 AM
how do i set date as 1st thursday of every month srpingbokiwi Excel Worksheet Functions 7 November 19th 06 07:05 PM
Populating an excel calendar - eg. 10x tuesday/thursday from date x [email protected] Links and Linking in Excel 0 September 28th 06 10:00 AM
When I convert a date to a weekday, Sunday becomes Thursday? FredYorkII Excel Worksheet Functions 1 May 3rd 06 06:31 PM
Fixing the date. cs2883 New Users to Excel 7 October 7th 05 07:40 PM


All times are GMT +1. The time now is 05:01 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"