Title Frame

M

Matt

How do I auto size my title frame that had been saved as a stencil to work
with all page scale sizes???
 
J

John Marshall, MVP

Take a look at some of the Background shapes or the Border and Titles
shapes. They define their size based on the page size as:

Width =ThePage!PageWidth-4*User.PageMargin
Height =ThePage!PageHeight-4*User.PageMargin
PinX =ThePage!PageWidth*0.5
PinY =ThePage!PageHeight*0.5

If you look at one of these shapes after you drop it on a page, you will not
see the above formulas because of the EventDrop cell
which has the following huge formula:

=SETF(GetRef(Width),ThePage!PageWidth-4*User.PageMargin)
+SETF(GetRef(Height),ThePage!PageHeight-4*User.PageMargin)
+SETF(GetRef(PinX),ThePage!PageWidth*0.5)
+SETF(GetRef(PinY),ThePage!PageHeight*0.5)
+SETF("EventDrop",0)

This basically hard codes the values and clears the EventDrop cell. So you
need to open the ShapeSheet of the master on the stencil.

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
Visio Wishlist http://www.mvps.org/visio/wish_list.htm
 

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