Hi
I would like to calculate the total of days by month wise between two dates through VBA. I have seen some example at the below link but that's on the worksheet.
Distributing Days Over Intervals
Does anyone suggest VBA function to do the same ? (could return that in array format would be useful so I can use that in other calculations). This is required for cash flow calculations through VBA.
Start Date - 01/Jan/2015
End Date - 05/Mar/2015
VBA Result
Count Month Month Days
1 1/Jan/2015 31
2 1/Feb/2015 28
3 1/Mar/2015 5
Much Appreciated
Note- If the supplied dates are wrong, then VBA has to assume default dates
I would like to calculate the total of days by month wise between two dates through VBA. I have seen some example at the below link but that's on the worksheet.
Distributing Days Over Intervals
Does anyone suggest VBA function to do the same ? (could return that in array format would be useful so I can use that in other calculations). This is required for cash flow calculations through VBA.
Start Date - 01/Jan/2015
End Date - 05/Mar/2015
VBA Result
Count Month Month Days
1 1/Jan/2015 31
2 1/Feb/2015 28
3 1/Mar/2015 5
Much Appreciated
Note- If the supplied dates are wrong, then VBA has to assume default dates