Jonathan,
Dates have been nightmare in excel. I have played around with different code and the problem is the date in J1 or P4. I have hard coded that is
It works, but as soon as I change the criterion to a range, it comes with some funny result. I have tried formatting and changing the data in to date format, but to no avail. When I formatted the P4 or J1 in to number format, it works.
I do not know why 41488.00 works, but (02-aug-13) does not work.
This code works with the date is formatted as number.
Bookmarks