hi I have the following code

Please Login or Register  to view this content.
I have a problem when I am copying the template sheet I refer to the line "Sheets("Temp").Copy After:=Sheets(Sheets.Count)" it copys the sheet however it seems to break the loop and end the sub for no apparent reason.

Any ideas where i might be going wrong?