Word 2013 透過「開發工具」索引標籤插入 ActiveX 按鈕控件,並撰寫 VBA 事件程式碼,可實現點擊按鈕彈出訊息、執行巨集、控制文件內容等自動化互動功能。
Private Sub CommandButton1_Click() MsgBox "歡迎來到 Word 聯盟" End Sub