How to Create a Custom Stencil?

B

Ben

I have the need to put a bit of code behind a stencil in Visio 2007.
Basically double click the stencil or right click and choose an option to do
this task. This stencil will have several Text boxes on it as well that it
will use as database filters.

IE

---------------------------------
| [Data1 TextBox] |
| |
| [Result TextBox] |
| |
| [Click Me Button] |
---------------------------------

So this shows the need for it to be able to click a button then find sibling
controls for information to fill out infomation in Result Box.

I have seen a URL Stencil that ships with Visio where you right click it and
the option is given to open a URL in IE. So I know this feature exists.

Please point me in the right direction.

Thanks!
 
A

AlEdlund

Drawings, Templates, and Stencils all have the ability host vba code. The
easy way is to just create your functionality within a drawing and then save
it as stencil (.vss). The challenge is in deciding on the mechanism you want
to use to call your code. Often the custom stencils that the unitiated use
are actually the external entities of addins that are installed with the
product (flowcharts, uml, db models, timelines, etc.)
al
 

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