C
ck
Hello All,
I was looking for some code where I start with current day and loop through
2 years of dates. Anyways I need to build up an array of dates. I am
trying to find the 15th of each month and the last day of the month, also if
the day of the week is either Saturday or Sunday, I need the date of the
Friday before it. Does that make sense? If 10/15/03 was Saturday , I would
want to add 10/14/03 to the array. If 10/15/03 was a Sunday, I would want
10/13/03 in the array. Is this do-able? Also how do you determine the last
day of the month in VBA? This is a payroll application, where it is done
the 15th and the last day of the month and if those dates fall on a weekend,
payroll will be done the Friday before. Can anyone point me in the right
direction?
I figure loop through the dates and based on the criteria, append it to the
array. Just not sure how to set up the logic.
Thanks,
~ck
(e-mail address removed)
Remove NoSpam
I was looking for some code where I start with current day and loop through
2 years of dates. Anyways I need to build up an array of dates. I am
trying to find the 15th of each month and the last day of the month, also if
the day of the week is either Saturday or Sunday, I need the date of the
Friday before it. Does that make sense? If 10/15/03 was Saturday , I would
want to add 10/14/03 to the array. If 10/15/03 was a Sunday, I would want
10/13/03 in the array. Is this do-able? Also how do you determine the last
day of the month in VBA? This is a payroll application, where it is done
the 15th and the last day of the month and if those dates fall on a weekend,
payroll will be done the Friday before. Can anyone point me in the right
direction?
I figure loop through the dates and based on the criteria, append it to the
array. Just not sure how to set up the logic.
Thanks,
~ck
(e-mail address removed)
Remove NoSpam