views:

32

answers:

1

I'm working with a PowerPoint 2003 presentation for a kiosk display, and it is left running pretty much 24/7. One slide on it has the weather, the current date, and the 7 day forecast.

I've already written the subs that will update the weather from an Excel workbook, and update the dates displayed, but right now I have to manually update it when I come in. Is there a way that I can have a subroutine (e.g. UpdateSlide()) called when the slideshow reaches that particular slide? It seems like there is no official way to do this, I'm assuming for security reasons, but what about a timed event, such that it would call it say, every six hours?

+2  A: 

Use the built-in OnSlideShowPageChange event:

Public Sub OnSlideShowPageChange(ByVal Wn As SlideShowWindow)
   If Wn.View.CurrentShowPosition = 3 Then
       'Perform Updates for slide #3
   EndIf
End Sub
BenV
Stupid question (I'm new to VBA): where would I place this sub? Can it go into any module, or should I make a class module for it?
kcoppock
Nevermind, it WAS a stupid question. I just tested it by sticking into my primary module, and it worked great! Thanks!
kcoppock
That's a great one! I didn't know bout this event, in the past I was creating a class and using `SlideShowNextSlide`, but this is much easier!!! :)
Mahin