cannot set page orientation for every page

P

page orientation

How can I set each page's paper orientation to either Landscape or Portrait
whenever I add a page using Visio automation or VBA in macros?
 
A

AlEdlund

something like this
al

set visPage = application.activepage
Set visPageSheet = visPage.PageSheet
Set visCell = visPageSheet.Cells("PageWidth")
SetCellValueToString visCell, "11in"
Set visCell = visPageSheet.Cells("PageHeight")
SetCellValueToString visCell, "8.5in"
 
J

John... Visio MVP

The concept of Landscape/Portrait does not exist in Visio automation. You
need to set the H & W to the appropriate values as Al's message indicates.

John... Visio MVP
 

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