This VBA code example presumes that you know enough about using and running VBA to use it as-is. This code will execute when its VISIO file opens, and draws three rectangles (as above) on a VISIO page ...
Using this control, you can embed the full functionality of the Visio drawing surface into your applications. You can take advantage of the full Visio object model (API) and you can pick the aspects ...