Line patterns transfer

Started by jfvert, June 14, 2016, 05:45:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jfvert

Hi I am currently trying to import/export a line pattern that I create. But i don't know how... is it possible using stencils to move my line from a visio folder to an other? I have many projects so it is impossible to copy/paste from one to an other it would be too long

Thanks again,

jfvert

JuneTheSecond

Really, I cannot understand your wish yet.
But it is easy to copy custom line pattern to another drawing,
Simply drag and drop one shape of your line pattern into any page of another Visio drawing.
Or in VBA, next code exports line pattern named "test" to another drawing that is open just now. 


Option Explicit

Sub test()
    Dim mst As Visio.Master

    Set mst = ThisDocument.Masters("test")
   
    ActivePage.Document.Masters.Drop mst, 0, 0
End Sub


Best Regards,

Junichi Yoda
http://june.minibird.jp/