Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Is there any VB command to find out the total no. of days in a month?

As subject, many thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Is there any VB command to find out the total no. of days in a month?

Hi
=Day(Dateserial(year,month+1,0))

--
Regards
Frank Kabel
Frankfurt, Germany

"ªü¤T" schrieb im Newsbeitrag
...
As subject, many thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Is there any VB command to find out the total no. of days in a month?

Hello Frank,
Great, many thanks!

"Frank Kabel" ¼¶¼g©ó¶l¥ó·s»D
...
Hi
=Day(Dateserial(year,month+1,0))

--
Regards
Frank Kabel
Frankfurt, Germany

"ªü¤T" schrieb im Newsbeitrag
...
As subject, many thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default Is there any VB command to find out the total no. of days in a month?

Hi. "ªü¤T" . One common way is to look at the first day of next month,
but instead of using 1, use 0 to return the previous day.

dte = Int(Now)
NumDays = Day(DateSerial(Year(dte), Month(dte) + 1, 0))
' or with atpvbaen.xls loaded...
NumDays = Day(EOMONTH(dte, 0))

--
Dana DeLouis
Win XP & Office 2003

"ªü¤T" wrote in message
...
As subject, many thanks.



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
Running total over a find number of days Zorro[_2_] Excel Worksheet Functions 15 January 17th 09 11:25 PM
Find days in a Month Jman Excel Discussion (Misc queries) 3 October 13th 08 07:00 AM
Find the First of the Month after 60 days NeSchw6G Excel Worksheet Functions 11 August 23rd 08 05:46 PM
Find the number of days in a month catrrmg Excel Worksheet Functions 2 August 1st 07 12:04 PM
how do i display the total number of days in the current month in. timerigger Excel Discussion (Misc queries) 6 March 20th 05 05:13 PM


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