Using VBA Macro to lock Custom Property

M

Mikhail

I'd like to make a macro in Visio2003 that allows me to lock a certain custom
property from being edited.

Thanks much.
 
M

Mark Nelson [MS]

Do you want to prevent the user from changing custom property values or do
you only want to prevent the user from adding / removing custom properties?

The LockCustProp cell in the Shapesheet prevents changes to the definition
of custom properties (as well as adding / removing) but allow the user to
change property values.

If you want to completely lock the property, I suggest setting the Invisible
cell to True so that the user cannot see it. A fallback would be to wrap
the custom property value with the GUARD function.
 
D

David Parker [Visio MVP]

An alternative method for making read-only custom properties is to put the
value in the format cell too, and make the type=1 (Fixed List)
 

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