Shape Name

C

Chris Roth [MVP]

Hi Nai,

The shape's name isn't stored in a ShapeSheet cell, so you can't really do
it with any kind of function.

An Action can call code that could change the name using RUNADDON(),
RUNADDONWARGS(), CALLTHIS(), or RUNMACRO()

You could also pop up the Format > Special dialog, which allows the user to
change the shape's name. Use this function in the action:

= DOCMD(1073)

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 
N

Nai

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top