Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Publisher / Programming / August 2005

Tip: Looking for answers? Try searching our database.

Changing ActivePage in VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Ruud - 17 Aug 2005 18:39 GMT
Does anyone know how to change the activepage in vba as in
ThisDocument.ActiveView.ActivePage so I can cause a different page to be
displayed? I can't seem to find it, but I can't believe it can't be done.

Thanks in advance,
Signature

Rick Ruud
Palisades Computers LLC
North Canton & Columbus, Ohio

Ed Bennett - 17 Aug 2005 21:52 GMT
> Does anyone know how to change the activepage in vba as in
> ThisDocument.ActiveView.ActivePage so I can cause a different page to
> be displayed? I can't seem to find it, but I can't believe it can't
> be done.

When I'm coding in VB6, I use
   Set ActiveDocument.ActiveView.ActivePage = ActiveDocument.Pages(index)
(ThisDocument is inaccessible from VB6, as VB6 does not run within a
particular document)

However, changing ActiveDocument to ThisDocument does not always allow the
code to run in Publisher for some reason.

(Just by the way, in VB.NET, the code is
[Publisher Application].ActiveDocument.ActiveView.ActivePage = _
   [Publisher Application].ActiveDocument.Pages(index)

Note the absence of the "Set" keyword)

Signature

Ed Bennett - MVP Microsoft Publisher


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.