演講最怕時間失控。PowerPoint 內建無倒數計時器,但有兩大**零程式碼、零外掛**原生實作法:**嵌入 Flash 計時動畫 (視覺衝擊強)** 與 **頁首頁尾自動更新時間 (資訊密度高)**。雖文中以 WPS 示範,但 Office 全版本通用。








| 維度 | Flash 計時動畫 | 頁首頁尾動態時間 |
|---|---|---|
| 顯示內容 | 倒數/正計時、視覺進度條、色彩警示 | 系統即時時間 (時:分/時:分:秒) |
| 視覺衝擊 | 強 (動畫、變色、閃爍) | 弱 (靜態文字) |
| 時間參考 | 相對時間 (剩餘/已用) | 絕對時間 (現在幾點) |
| 技術相依 | 需 `.swf` 檔、**Flash 已淘汰** (2020 終止支援) | 純原生功能、**永續可用** |
| 推薦指數 (2024+) | ⭐ (僅離線舊環境) | ⭐⭐⭐⭐⭐ **首選** |
若需倒數計時功能,建議使用 **VBA 即時更新文字方塊** 方案:
' 標準模組
Public TimerEnd As Date
Sub StartCountdown(Minutes As Long)
TimerEnd = DateAdd("n", Minutes, Now)
Application.OnTime TimerEnd, "TimerAlert"
UpdateTimer
End Sub
Sub UpdateTimer()
Dim Remaining As Long
Remaining = DateDiff("s", Now, TimerEnd)
If Remaining > 0 Then
ActivePresentation.Slides(1).Shapes("TimerText").TextFrame.TextRange.Text = _
Format(Remaining \ 3600, "00") & ":" & Format((Remaining Mod 3600) \ 60, "00") & ":" & Format(Remaining Mod 60, "00")
Application.OnTime Now + TimeSerial(0, 0, 1), "UpdateTimer"
Else
ActivePresentation.Slides(1).Shapes("TimerText").TextFrame.TextRange.Text = "00:00:00"
End If
End Sub
Sub TimerAlert()
MsgBox "時間到!", vbExclamation, "計時器"
End Sub
在投影片放映前執行 `StartCountdown 15` (15 分鐘倒數),文字方塊名稱設為 `TimerText`,即可獲得**精準、可自訂樣式、無外部相依**的倒數計時器。
文中提及提供 3 個 VBA 計時器檔案下載,建議收藏備用。核心邏輯皆為 `Application.OnTime` 遞迴更新文字方塊,可依需求客製化顏色、字型、位置、警報方式。