How can I specify a particular presentation when several are open at once?

  • Thread starter Thread starter Colleyville Alan
  • Start date Start date
C

Colleyville Alan

I am trying to get my app to end up with a particular view. It is run from
Access and uses automation and hyperlinks to pull copies of slides from
various ppt files into one template and when it is done, saves the template
under a unique name. But I'd like the user to end up looking at the ppt
file that was the template, on slide #1.

So getting to slide #1 I use:
oPPT.ActiveWindow.View.GotoSlide (1)

BUT, how do I get that particular presentation to be active? I tried this:
oPPT.Windows(presCount).Activate

where the variable presCount was initialized when the template file was open
(set to the oPPT.Presentations.Count property. I was thinking that the last
file I opened would be identified with a window having the same index as the
presentations.count, but that has not worked out).

Thanks
 
I posted this response last night from the Web, but it's not showing up
in my newsreader this morning. Apologies if this is a repeat.

Have you tried oPPT.Presentations(presCount)?
--David

--
David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
HowdySir.

Suppose you did this before embarking:

strOriginalCaption = ActivePresentation.Windows(1).Caption

Then to restore it:

Dim x As Long
For x = 1 To Application.Windows.Count
If Application.Windows(x).Caption = strOriginalCaption Then
Application.Windows(x).Activate
End If
Next x


I am trying to get my app to end up with a particular view. It is run from
Access and uses automation and hyperlinks to pull copies of slides from
various ppt files into one template and when it is done, saves the template
under a unique name. But I'd like the user to end up looking at the ppt
file that was the template, on slide #1.

So getting to slide #1 I use:
oPPT.ActiveWindow.View.GotoSlide (1)

BUT, how do I get that particular presentation to be active? I tried this:
oPPT.Windows(presCount).Activate

where the variable presCount was initialized when the template file was open
(set to the oPPT.Presentations.Count property. I was thinking that the last
file I opened would be identified with a window having the same index as the
presentations.count, but that has not worked out).

Thanks

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top