Hi,
I realised there was a small glitch in the program so I corrected it. It was occuring when there was a gap of more than 1 hour between the last row and the above row.
I also think I'm able to process night shift data. I programmed a function (Night_S) which is called at the beginning of the program. It modifies the day and time in Sheet1 in order to reduce the day by 1 and add 24 hours to the hours over midnight. This way the program knows it has to process this line as part of the actual user.
Give it a try and let me know how it performs.
Pierre
Pierre
Bookmarks