Sub countdown()
Dim time As Date
time = Now()
Dim count As Integer
count = 30 '倒计时30s
time = DateAdd("s", count, time)
Do Until time < Now()
DoEvents
ActivePresentation.SlideShowWindow.View.Slide.Shapes("timer").TextFrame.TextRange = Format((time - Now()), "hh:mm:ss")
Loop
End Sub