Thanks! I thought briefly about trying square brackets instead of <> and should have but I had no idea about the pipes. I'll change my Excel macro that generates the code and maybe experiment a bit more. It will be nice to be able to do squares on this forum.