Thanks for the reply. I did have that at one point & it didn't work. Now I'm back to that line of code not staying in the custom template when saved. I'll go back in and it is missing. I have it as the very first line. I'm ready to beat my head on this desk. Perhaps I need some code prior to it. When I do it in notepad & open in my browser it works fine.