#1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Check date

Hi,

How to code in VBA to find it is the 4th Sunday and 21st of the month or
Last day of the month and 5th Sunday and is the Last day of the month falls
on Sun?

please advise.

regards,
Ben
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default Check date

Ben wrote:
How to code in VBA to find it is the 4th Sunday and 21st of the month or
Last day of the month and 5th Sunday and is the Last day of the month falls
on Sun?


The 21st can't be the 4th Sunday.
Maybe you're looking for the WeekDay function.


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---


-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Check date

Hi Ben,
Take a look at
First, Last, Nearest, Closest, nth weekday (4th Monday) in Month, Date calculations (#firstdate)
http://www.mvps.org/dmcritchie/excel....htm#firstdate
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Dave D-C" wrote in message ...
Ben wrote:
How to code in VBA to find it is the 4th Sunday and 21st of the month or
Last day of the month and 5th Sunday and is the Last day of the month falls
on Sun?


The 21st can't be the 4th Sunday.
Maybe you're looking for the WeekDay function.


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---


-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----



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
VBA check if date is in future Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 6 April 24th 23 07:43 PM
check if a a date is in a specified daterange H. Nissen[_2_] Excel Worksheet Functions 4 October 30th 08 09:20 PM
Check input is a date stumac Excel Discussion (Misc queries) 5 December 14th 06 03:28 PM
how can i set a date reminder to check on something in a certain. vette Excel Worksheet Functions 1 November 7th 06 04:56 PM
Check if date is a business day neda5 Excel Discussion (Misc queries) 4 July 8th 05 04:35 PM


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