Modifying page setup in Visio STD 2003 from VBA

R

Rad

Hi there,

How can I modify the page setup from a VBScript? I created a script that
will launch Visio STD 2003, and then create a new document. Now I am trying
to set the page layout to Landscape from the script and I am unable. I tried
using a macro but did not work?

Any clues, any idea to help solve this problem? An example will be great.

Thanks.
 
J

JuneTheSecond

I wonder whether it is possible in VBScript.
In VBA, you might change to Lanscape by setting the value of
PrintPageOrientation cell.

ActivePage.PageSheet.Cells("PrintPageOrientation") = 2
 
R

Rad

Thanks for taking the time to answer the question.
Ok, how can I lunch a macro from VbScript?
 
R

Rad

I did: oVISIO.ActivePage.PageSheet.Cells("PrintPageOrientation") = 2
This worked in VBScript, but still would not set the page layout, because I
need to set Page Oriantation to Landscape, under Page Size tab, in Page
Setup.

The Question here is: How would I find the name of this Landscape option
button? OR, how would I access this option button?

Thanks,
Rad
 

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