Does anybody know if a shape can be configured by its shapesheet (and not by VBA) in the way that it creates a new page when it will be used (dragged from its stencil)? If yes, what command/event I have to use?
Thanks
i am not sure that it possible via shapesheet ::)
Hi
I might to remember that there were some shapes (backgrounds, I think) in a stencil in a earlier version of VISIO (2007?). If you used them they created a new page (as a background page)...
Those shapes have the following formula in the EventDrop cell:
=RUNADDON("Make Background")+SETF("EventDrop",0)
This calls the Make Background addon. There is no equivalent to make a page.
Another way would have been to use DoCMD() to access the many commands within Visio's automation, however, the command to add a page (visCmdInsertPageTab = 2202) doesn't work from the shapesheet.
It should be possible to create a small add on to create a new page, and then call this when the shape is dropped.
Just tested this code : RUNADDONWARGS("OPC","/CMD=1") ,
copied from an off-page-reference shape and pasted it in the double-click event of a virgin shape. It does create a new page.
Thank you all especially Paul and Yacine! Have a good winter - here in France we already have snow...
Regards Urs
Et maintenant tu retournes dans ta caverne hiberner? Bon hiver à toi aussi ;) .
PS: the enclosed image shows snow made in Visio.
The huskies haven't been there yet! :o