想在簡報內嵌互動測驗?PowerPoint 2007「開發工具」→「控制項」→「核取方塊」配合 VBA 巨集,可製作「多選題:選對顯示正確、選錯提示錯誤、重選鈕重置」完整互動邏輯。以下為完整實作步驟。
Office 按鈕 →「PowerPoint 選項」→「常用」→ 勾選「在功能區顯示『開發工具』索引標籤」。
Caption 為選項文字(如「A 蘇軾」、「B 李白」…)。





Caption 為「提交」、「重選」;Name 設為 CmdSubmit、CmdReset。


CmdSubmit_Click() 撰寫:If CheckBox1.Value = True And CheckBox4.Value = True Then
MsgBox "選擇正確", vbOKOnly, "提示"
Else
If CheckBox1.Value = True Or CheckBox4.Value = True Then
MsgBox "選對了一個", vbOKOnly, "提示"
Else
MsgBox "選擇錯誤,正確答案是蘇軾和王安石", vbOKOnly, "提示"
End If
End If


CmdReset_Click() 撰寫:CheckBox1.Value = False
CheckBox2.Value = False
CheckBox3.Value = False
CheckBox4.Value = False

