Visio Guy

Visio Discussions => Programming & Code => Topic started by: tsar on August 14, 2008, 12:53:50 AM

Title: Find specific tag and Replace the tag values within the Class Properties
Post by: tsar on August 14, 2008, 12:53:50 AM
Hello,

I'm looking for a tool or some vba code to do a find a specific tag and replace a tag value in the Class Properties.  I have a vsd that contains hundreds classes. The class attribute contains a specific tag and a value and I need to replace the value of the tag.  I'm Using Visio 2003.

Thanks in advance!
Title: Re: Find specific tag and Replace the tag values within the Class Properties
Post by: Lars-Erik on August 20, 2008, 01:12:44 PM
Could be me but, please explain what exactly you mean with "tag values" and "class properies". neither terms ring a bell to me, not in Visio anyway.

Are you trying to edit custom properties? Think theres something like that somewhere on the forum...
Title: Re: Find specific tag and Replace the tag values within the Class Properties
Post by: Lars-Erik on August 22, 2008, 05:09:04 AM
Quote from: Lars-Erik on August 20, 2008, 01:12:44 PM
Are you trying to edit custom properties? Think theres something like that somewhere on the forum...

The following article (http://www.larserikmiedema.nl/blog/2008/06/11/mass-changing-of-your-stencils-masters/) goes true all the masters in a document looking for certain custom properties and changes them where needed. You could addapt this to work with shapes on a page pretty easy.