Is there any VB command to find out the total no. of days in a month?
As subject, many thanks.
|
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 "阿三" schrieb im Newsbeitrag ... As subject, many thanks. |
Is there any VB command to find out the total no. of days in a month?
Hello Frank,
Great, many thanks! "Frank Kabel" 撰寫於郵件新聞 ... Hi =Day(Dateserial(year,month+1,0)) -- Regards Frank Kabel Frankfurt, Germany "阿三" schrieb im Newsbeitrag ... As subject, many thanks. |
Is there any VB command to find out the total no. of days in a month?
Hi. "阿三" . 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 "阿三" wrote in message ... As subject, many thanks. |
All times are GMT +1. The time now is 09:51 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com