P
peter.allan
Hello all,
I'm using the following code to loop through all pages in my org chart
and re-layout ;
For Each visPage In visDoc.Pages
Call visApp.Addons.ItemU("OrgC11").Run("/cmd=LayoutPage")
Next visPage
Unfortunately this doesn't work - it will only run the re-Layout on
the active page (ie. the one I am looking at on the screen.
So how do I change the active page using VBA in Visio 2003 ? I found
some examples here which use the following ;
ActiveWindow.Page = visPage.Name
but there is no Page property of the ActiveWindow in Visio 2003,
although it is there in Visio 2002.
Can anyone tell me how to programmatically change the active page ?
Thanks,
Peter
I'm using the following code to loop through all pages in my org chart
and re-layout ;
For Each visPage In visDoc.Pages
Call visApp.Addons.ItemU("OrgC11").Run("/cmd=LayoutPage")
Next visPage
Unfortunately this doesn't work - it will only run the re-Layout on
the active page (ie. the one I am looking at on the screen.
So how do I change the active page using VBA in Visio 2003 ? I found
some examples here which use the following ;
ActiveWindow.Page = visPage.Name
but there is no Page property of the ActiveWindow in Visio 2003,
although it is there in Visio 2002.
Can anyone tell me how to programmatically change the active page ?
Thanks,
Peter