You're welcome.
Next time, avoid posting lengthy procedures and post only the ones relative to the errors. If you double click on the error, it will locate it for you. You might also want to try the IFCodes, you can find them on the left section of the Reply page.