E
elcahall
A while ago I posted a question seeking a way to play a slideshow that's
located on a network share on several pcs simultaneously while maintaining
the capacity to update the slideshow "on the fly" and have those changes
reflected in the slideshow while it runs. The specifics can be found in this
thread:
http://www.microsoft.com/office/com...20f8&catlist=&dglist=&ptlist=&exp=&sloc=en-us
I believe I've found a way to accomplish this by using two presentations.
The first one contains a macro that opens the second one in "read only" mode,
runs it, exits it, closes that window, then restarts the process all over
again. Here's the code...
Sub StartShow()
'Do
Presentations.Open FileName:="Z:\XXXXX.ppt", ReadOnly:=msoTrue
With ActivePresentation.SlideShowSettings
.ShowType = ppShowTypeKiosk
.LoopUntilStopped = msoFalse
.ShowWithNarration = msoFalse
.ShowWithAnimation = msoFalse
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.PointerColor.RGB = RGB(Red:=255, Green:=0, Blue:=0)
.Run
End With
'SlideShowWindows(Index:=1).View.Exit
'ActiveWindow.Close
'Loop
End Sub
The problem I'm having is when I run the macro with the Exit and Close
commands active the slide timings are squashed, the entire presentation (my
test presentation is 9 slides timed at 6 seconds each) runs in approximately
one second. If I comment out the Exit and Close commands (as shown above)
the timings work perfectly. Why does this happen and how can i fix it?
Secondly, While I need the loop, I also want to be able to stop it if the
need arises. When I tested the macro with the DO/LOOP enabled I wasn't able
to stop it with ESC or CTRL+BREAK. I had to use task manager to kill
PowerPoint completely. I THINK this was because the loop was running faster
than I could hit the keys to stop it but I'm not sure and am looking for some
feedback on continuous looping and breaking loops.
Your help is appreciated!
E. Cahall
located on a network share on several pcs simultaneously while maintaining
the capacity to update the slideshow "on the fly" and have those changes
reflected in the slideshow while it runs. The specifics can be found in this
thread:
http://www.microsoft.com/office/com...20f8&catlist=&dglist=&ptlist=&exp=&sloc=en-us
I believe I've found a way to accomplish this by using two presentations.
The first one contains a macro that opens the second one in "read only" mode,
runs it, exits it, closes that window, then restarts the process all over
again. Here's the code...
Sub StartShow()
'Do
Presentations.Open FileName:="Z:\XXXXX.ppt", ReadOnly:=msoTrue
With ActivePresentation.SlideShowSettings
.ShowType = ppShowTypeKiosk
.LoopUntilStopped = msoFalse
.ShowWithNarration = msoFalse
.ShowWithAnimation = msoFalse
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.PointerColor.RGB = RGB(Red:=255, Green:=0, Blue:=0)
.Run
End With
'SlideShowWindows(Index:=1).View.Exit
'ActiveWindow.Close
'Loop
End Sub
The problem I'm having is when I run the macro with the Exit and Close
commands active the slide timings are squashed, the entire presentation (my
test presentation is 9 slides timed at 6 seconds each) runs in approximately
one second. If I comment out the Exit and Close commands (as shown above)
the timings work perfectly. Why does this happen and how can i fix it?
Secondly, While I need the loop, I also want to be able to stop it if the
need arises. When I tested the macro with the DO/LOOP enabled I wasn't able
to stop it with ESC or CTRL+BREAK. I had to use task manager to kill
PowerPoint completely. I THINK this was because the loop was running faster
than I could hit the keys to stop it but I'm not sure and am looking for some
feedback on continuous looping and breaking loops.
Your help is appreciated!
E. Cahall