Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
Dim dtm As Date, lngDays As Long dtm = "25-Feb-2004" lngDays = Day(DateSerial(Year(dtm), Month(dtm) + 1, 0)) MsgBox lngDays End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "Charles" wrote in message ... Hi I need to find uot how many days are in a month in VBA is there a way of doing this if so can someone help me please TIA Charles |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Number of days in month counted from shortened name of month & yea | Excel Worksheet Functions | |||
Finding the number of Days in the month? | Excel Discussion (Misc queries) | |||
Number of Days in the Month | Excel Discussion (Misc queries) | |||
How can I add up lookups? Finding days in a week of a month | Excel Discussion (Misc queries) | |||
number of days in a month | Excel Worksheet Functions |