Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to select a page with VBA?

721 views
Skip to first unread message

Jun Jiang

unread,
Nov 15, 2001, 10:22:12 PM11/15/01
to
With a Visio document with multiple pages, how to select a
different page with VBA? Thanks for your help.

Iwan van Ee

unread,
Nov 16, 2001, 12:42:58 AM11/16/01
to
To get a reference to a Page in a Visio document use the following
statement:

Set pagObj = ActiveDocument.Pages(1)

or

Set pagObj = ActiveDocument.Pages("Page-1")

Greetings,
Iwan van Ee
Ravelin
MS Visio Partner

"Jun Jiang" <junj...@yahoo.com> wrote in message
news:933801c16e4d$e1df27c0$3def2ecf@TKMSFTNGXA14...

Jun Jiang

unread,
Nov 16, 2001, 11:38:11 AM11/16/01
to
My problem is to activate a different page. For example,
if the current active page is "Page 3", I would like to
activate "Page 1". This would be achived easily by a user
to click on the "Page 1" tab on the bottom of the
drawing. But I'm not how to do it with VBA...

>.
>

Jun Jiang

unread,
Nov 16, 2001, 11:38:31 AM11/16/01
to
My problem is to activate a different page. For example,
if the current active page is "Page 3", I would like to
activate "Page 1". This would be achived easily by a user
to click on the "Page 1" tab on the bottom of the
drawing. But I'm not how to do it with VBA...

>.
>

0 new messages