Private Sub Label50_Click()
Dim oPPT As PowerPoint.Application
Dim oPres As PowerPoint.Presentation
Set oPPT = CreateObject("Powerpoint.Application")
Dim path22 As String
path22 = Worksheets("HOME").Range("W4").Text
oPPT.Visible = msoTrue
'Path to File DRP_22
Set oPres = oPPT.Presentations.Open(path22)
With oPres.SlideShowSettings
.ShowType = ppShowTypeSpeaker
.RangeType = ppShowSlideRange
.StartingSlide = 1
.EndingSlide = 2
.AdvanceMode = ppSlideShowUseSlideTimings
.Run
End With
With oPPT
PowerPoint("DRP_22").Save
PowerPoint("DRP_22").Quit
End With
End Sub
The code you posted is basically telling PPT to start the slide show, then
*immediately* asking it to save and quit.
I've never tried exactly this, but it's sure to do one of three things:
1) Exactly what you asked for. Start the show, then quit. So fast that the
show won't even appear on screen.
2) Start the show, then ignore you when you ask it to quit since it's busy
showing a show <WC_Fields>go 'way boy, you bother me</WC_Fields>
3) Go poof
Shyam's code doesn't allow later lines to execute until the slide show ends.
>.
>
>.
>
Given a choice, I'd *always* start with Shyam's code rather than my own.
<g>
--
Regards
Shyam Pillai
Handout Wizard
http://www.mvps.org/skp/how/
"jim oswell" <jos...@heery.com> wrote in message
news:655601c1df2e$f2275c40$a5e62ecf@tkmsftngxa07...
"Steve Rindsberg" <stop...@its.source> wrote in message news:OlELex23BHA.2104@tkmsftngp02...
I had small problem with Line .saved = true
.application.activepresentation.saved = msotrue
seemed to solve problem
Thanks Again
Jim Oswell
>.
>
> > .Run
> > .Saved = True
> > End With
To:
> > .Run
> > End With
> > .Saved = True
--
Regards
Shyam Pillai
Shyam's ToolBox for PowerPoint
http://www.mvps.org/skp/toolbox
"Jim Oswell" <jos...@heery.com> wrote in message
news:03f901c1dfe2$9fe14c70$a4e62ecf@tkmsftngxa06...
> > Do While oPPTApp.SlideShowWindows.Count > 0