Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Date Question

I have a macro that shoots me a reminder if today is Friday. Is it possible
to specify if today is the first weekday of the month?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Date Question

Select Case Weekday(Date(),2) ' Monday=1, ... Sunday=7
Case 1
If Day(Date())<4 Then Call Alert() ' If Monday the 1st, 2nd or 3rd must
be 1st day of month
Case 2 To 5
If Day(Date())=1 Then Call Alert() ' Any other weekday, only if 1st of
month
End Select

Alert() would be a sub used to alert you
--
- K Dales


"StephanieH" wrote:

I have a macro that shoots me a reminder if today is Friday. Is it possible
to specify if today is the first weekday of the month?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Date Question

Thanks K.



"K Dales" wrote:

Select Case Weekday(Date(),2) ' Monday=1, ... Sunday=7
Case 1
If Day(Date())<4 Then Call Alert() ' If Monday the 1st, 2nd or 3rd must
be 1st day of month
Case 2 To 5
If Day(Date())=1 Then Call Alert() ' Any other weekday, only if 1st of
month
End Select

Alert() would be a sub used to alert you
--
- K Dales


"StephanieH" wrote:

I have a macro that shoots me a reminder if today is Friday. Is it possible
to specify if today is the first weekday of the month?

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 question WLMPilot Excel Worksheet Functions 2 January 20th 09 09:42 PM
DATE Question Terry Excel Worksheet Functions 1 October 11th 07 08:16 PM
DATE Question jlynn2000 Excel Discussion (Misc queries) 6 December 8th 06 03:43 PM
Another Date Question Kdub via OfficeKB.com Excel Discussion (Misc queries) 1 June 30th 05 01:09 AM
date question david Excel Programming 1 July 23rd 03 09:50 PM


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