I have one more query if you could please help me.

As you see the code is operating in the worksheet named "Hours". Is it possible to program the code to look in Sheet2 if "Hours" worksheet is not present?

Thanks once again.