Sorting the objects available in stencil

D

Deepa

Hi,

is it possible to sort the objects available in the stencil ??? or is it
possible to select any of the object available in the stencil
programatically???

Thanks in advance for ur help.

Thanks!
 
J

JuneTheSecond

For example for a stencil that has just 3 masters, next code might move the
last master to first on stencil.
For Each mst In ThisDocument.Masters
If mst.Index = 1 Then mst.IndexInStencil = 9
If mst.Index = 2 Then mst.IndexInStencil = 8
If mst.Index = 3 Then mst.IndexInStencil = 7
Next
 
J

JuneTheSecond

Or next code moves the master named "SpecialName" to the first in the stencil.
For Each mst In ThisDocument.Masters
If mst.Name = "SpecialName" Then mst.IndexInStencil = 1
Next
 
Top