Hi,
I wonder if somebody can help me please. I am using the macro below (provided by a member on this site ) to run a countdown timer on an object in a powerpoint slide when I click the object linked to the macro. The timer works well (in presentation mode) as long as I don't navigate away from the slide containing with the object. However, if I navigate away from the slide the timer pauses.
Does anybody know if there is a way to keep the countdown time running when I navigate away from the slide (in presentation mode)?
Any help is very much appreciated!
Thanks,
Iain
Sub macroCONTROL()
Dim time As Date
time = Now()
Dim count As Integer
count = 120
time = DateAdd("s", count, time)
Do Until time < Now()
DoEvents
ActivePresentation.SlideShowWindow.View.Slide.Shapes("Rectangle 7").TextFrame.TextRange = Format((time - Now()), "nn:ss")
Loop
CreateObject("Shell.Application").ShellExecute "wmplayer.exe", "c:\Ghost.mp3", , "open", 0
End Sub
I wonder if somebody can help me please. I am using the macro below (provided by a member on this site ) to run a countdown timer on an object in a powerpoint slide when I click the object linked to the macro. The timer works well (in presentation mode) as long as I don't navigate away from the slide containing with the object. However, if I navigate away from the slide the timer pauses.
Does anybody know if there is a way to keep the countdown time running when I navigate away from the slide (in presentation mode)?
Any help is very much appreciated!
Thanks,
Iain
VBA Code:
Dim time As Date
time = Now()
Dim count As Integer
count = 120
time = DateAdd("s", count, time)
Do Until time < Now()
DoEvents
ActivePresentation.SlideShowWindow.View.Slide.Shapes("Rectangle 7").TextFrame.TextRange = Format((time - Now()), "nn:ss")
Loop
CreateObject("Shell.Application").ShellExecute "wmplayer.exe", "c:\Ghost.mp3", , "open", 0
End Sub
VBA Code: