Change the .Name and .NameU

S

Scott

I have a set of stencils (.vss file) and I need to change the .Name and
..NameU values of each master to be something different that what it is now.
Is there any way to do that?
 
C

Chris Roth [ Visio MVP ]

VBA!

Sub DoIt
dim stn as Visio.Document
set stn = Visio.Documents("MyStencil.vss") ' your stencil should be
open!
dim mst as Visio.Master
For each mst in stn.Masters
mst.NameU = mst.Name ' or whatever you want to do
Next
End Sub

--

Hope this helps,

Chris Roth
Visio MVP
 

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