I have a PowerPoint presentation in Kiosk Mode. In normal conditions during the presentation when user clicks the wrong option the shape's background fills red and plays a buzzer sound. If the user clicks the correct answer the background is filled with green color and a sound is played.
I wish to run a count down timer using VBA Macro which is implemented through a "Do Until Loop". I am using a "DoEvents" command within the loop but that is not helping properly. While the timer is running I can click on the shapes, the sound is played as desired but the animations don't work i.e. the wrong shape doesn't get filled with red background or the correct shape doesn't get filled with green background. However, when the timer is finished I can select objects as desired and wrong options get filled with red and so on.
Sub CountDown(ByVal timer_value As Integer, ByVal Wn As SlideShowWindow)
Dim future As Date
Dim curr_slide As Integer
curr_slide = Wn.View.CurrentShowPosition
future = DateAdd("s", timer_value, Now())
Do Until future <= Now()
DoEvents
ActivePresentation.Slides(curr_slide).Shapes("Pentagon").TextFrame.TextRange = Format(future - Now(), "s")
Loop
'This shows the Time is Up picture.
ActivePresentation.Slides(curr_slide).Shapes("Time").Visible = True
End Sub
How can I resolve this issue of animations not responding?