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