Thanks. The function =DOCMD(1073) works perfect.
Does the action you mentioned that 'can call code that could change the name
using RUNADDON(), RUNADDONWARGS(), CALLTHIS(), or RUNMACRO()', resides in the
action of the shapesheet? Where can I find the right format/syntax of these
codes?
Thanks again...