Activate page in VBA

C

Christoph Dümmen

I`m searching for code to switch the page if user selects page from a form
combox.
Having codes tons of rows in Excel and Word, I did not find a solution for
Visio.
thanks
Chris
 
A

Al Edlund

I guess that means you are in the correct place, because this is neither
Excel nor Word. Try somethink like this
' now make it the active page



visApp.ActiveWindow.Page = strPageName

al
 
C

Christoph Dümmen

Perfect, works great.
thanks
Chris

BTW: Is there any reason why
ActiveDocument.Pages("PageName").select is not working.
Ok, it is implemented differently. I just want to know if there is any Visio
specifoc reason which I do not know and do not see at the moment?
 
A

Al Edlund

as I remember it selects the page, but does not make it the active one in
the window.
al
 

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