Visio Guy

Visio Discussions => Programming & Code => Topic started by: suhaspatil3007 on February 21, 2012, 07:09:09 AM

Title: Block deletion/renaming of properties
Post by: suhaspatil3007 on February 21, 2012, 07:09:09 AM
Hi,

Any one know is it possible to block deletion / renaming of properties from define shape data window(for shape data section properties)?

thanks in advance.
Title: Re: Block deletion/renaming of properties and shape data
Post by: hill041 on August 23, 2018, 04:38:01 PM
Hi all,

I'm having the same problem. I'm using DOCMD(1312) to get my users to enter data and then have some of this data appear in the shape's text field. Each time they double click they also have the option to "define shape data" but i would really like to prevent the user from doing this.

An option for "protect defined shape data" or "protect user from defining shape data" would be perfect. Any ideas??

Thanks in advance.
Title: Re: Block deletion/renaming of properties
Post by: Surrogate on August 23, 2018, 09:18:10 PM
As I know we haven't this opportunity!
Title: Re: Block deletion/renaming of properties
Post by: Yacine on August 23, 2018, 09:19:04 PM
Faced the same problem when I tried to find a solution for your last question.
Anyway, I think you should set the "LockCustProp" field in the shapesheet to true (section Protection)
Title: Re: Block deletion/renaming of properties
Post by: Surrogate on August 23, 2018, 10:14:52 PM
Yacine, thank you !
I'm surprised. Never paid attention to this cell. It was even in the 2003 version / Proof (https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2003/aa173556(v=office.11))
Title: Re: Block deletion/renaming of properties
Post by: hill041 on August 24, 2018, 06:38:26 AM
Quote from: Yacine on August 23, 2018, 09:19:04 PM
Faced the same problem when I tried to find a solution for your last question.
Anyway, I think you should set the "LockCustProp" field in the shapesheet to true (section Protection)

Fantastic, that's got it! Thank you Yacine :)
Title: Re: Block deletion/renaming of properties
Post by: Visisthebest on August 26, 2018, 12:06:38 AM
Wow Yacine thank you for this very useful!