Orientation and Page from stencil

G

Gerard Braad

I am using a Visio Stencil to programmatically select my Masters and add
these to my page. But I want the page to be orientated in Landscape. I made a
page in my Stencil, called 'Processflow', but how do I get access to it???

i tried to change the orientation pf the page, but since Visio 2003, this
option is deprecated?
 
K

Kari Yli-Kuha

Gerard Braad said:
I am using a Visio Stencil to programmatically select my Masters and add
these to my page. But I want the page to be orientated in Landscape. I made a
page in my Stencil, called 'Processflow', but how do I get access to it???

i tried to change the orientation pf the page, but since Visio 2003, this
option is deprecated?

You can set the page width/height anything you like.
Below is an example for A4 landscape.


Dim ovPage As Visio.Page
Set ovPage = Application.ActiveDocument.Pages("Processflow")
ovPage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageWidth).FormulaU = "297 mm"
ovPage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageHeight).FormulaU = "210 mm"

hth,
/C
 

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