? =?big5?B?qvykVA==?= Nov 12, 2004 #3 Hello Frank, Great, many thanks! Frank Kabel said: Hi =Day(Dateserial(year,month+1,0)) Click to expand...
Hello Frank, Great, many thanks! Frank Kabel said: Hi =Day(Dateserial(year,month+1,0)) Click to expand...
D Dana DeLouis Nov 12, 2004 #4 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))
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))