> But now I get the None in every cell. Argh!! The problem is that <dtml-var "setCalendar('daynames','SMTWRFS')"> should be changed to <dtml-call "setCalendar('daynames','SMTWRFS')"> dtml-var will return the results of the expression, which is "None" in this case. dml-call will suppress any results. Regards, Ben