Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 538
  • Last Modified:

PowerPoint 2013 Slide Show won't run

Experts!
I set slide timings using this - adapted (thanks JSRW)

Sub writeTime()

    Dim i As Integer
    Dim osld As Slide
   
    Set osld = ActivePresentation.Slides(1)
    osld.Tags.Add "TIMING", "|0.5|0" '  be careful it's valid timing

End Sub

I checked that my slide show has set the timings by running this (thanks JSRW). OK.

Sub readTime()

    Dim i As Integer
    Dim osld As Slide

    For Each osld In ActivePresentation.Slides
   
        If osld.Tags.Count > 0 Then
            MsgBox "Slide" & osld.SlideIndex & " timings: " & osld.Tags("TIMING") & " - Slide: " & _
                osld.SlideShowTransition.AdvanceTime
           
        End If
   
    Next osld

End Sub

But when I try to run it from SlideShow From Beginning, it does not run.
Shouldn't it?

There must be something stupid I'm doing. (BTW this is the first time I'm trying to actually run it since JSRW kindly showed me how to do the code in December)

Thanks for help.
0
hindersaliva
Asked:
hindersaliva
  • 3
1 Solution
 
hindersalivaAuthor Commented:
Ooooops!

I solved it. All the slides had Advance On MouseClick checked. I changed it to Advance Slide After as I already had the slide timing imported as per JSRW.

Works correctly now.
0
 
hindersalivaAuthor Commented:
Next related question ...

How can I programatically set ALL SLIDES to:
Duration = .01 (the least)
And (tick) Advance Slide After?

Thanks!
0
 
JSRWilsonCommented:
This should do it or at least get you closer.

Sub All_Zippy()
Dim osld As Slide
For Each osld In ActivePresentation.Slides
With osld.SlideShowTransition
.EntryEffect = ppEffectNone
.AdvanceOnTime = msoTrue
.AdvanceOnClick = msoFalse ' maybe not needed
.Duration = 0.1
End With
Next osld
End Sub
0
 
hindersalivaAuthor Commented:
Fantastic! Thanks!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now