The macro is embedded in the Smart Shape, I think. It works at start but as the drawing becomes more complex the calculation stops working. If I insert a new shape it works OK. I think it down to modification of the shape (rotate, fill, rounding etc.). The automatic calculator stops working.