Loading a stencil, vss or vssm VBA project

Started by Jim.S, February 22, 2014, 01:06:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jim.S

Hi,

I'm new to Visio but not VBA and I'm struggling with what is probably a very basic issue: Loading a VBA project from a stencil when I open a drawing.

I've downloaded the example files from this post http://visguy.com/vgforum/index.php?topic=359.msg1640#msg1640 and I understand how the callthis events work, but when I convert the files to the 2013 format the drawing still loads the original VBA project from the stencil.

Also if I try to recreate the example from scratch I cannot figure out how to get a vss or vssm project file to open automatically.

Thanks in advance,
Jim

Yacine

You need to set up a template. In this template the stencils, that you need to use should be open.
When you start a new drawing, you should start from that template.
the code can be either in the stencil or the template.
Putting it in the stencil would be better, because it is loaded at runtime, whilst the code in the document created from stencil is static.
Yacine