Very sorry snb, I responded to these posts during the limited time I had during lunchbreak and can appreciate your frustration over the lack of detail in my response.
I have tested your code on PH's workbook and can confirm that it produces the desired output. Thank you.