Microsoft Excel 支援在按下 Enter 鍵或使用中儲存格完成編輯時,念出使用中儲存格的模式。 將 SpeakCellOnEnter 屬性設定為 True 會開啟此模式。 設定為 False 則關閉此模式。 可讀寫的 Boolean。
語法
運算式。SpeakCellOnEnter
運算式 代表 Speech 物件的變數。
範例
此範例會判斷在按下 Enter 鍵或使用中儲存格完成編輯時是否說出使用中儲存格,並通知使用者。
Sub SpeechCheck()
' Determine mode setting and notify user.
If Application.Speech.SpeakCellOnEnter = True Then
MsgBox "The Speak On Enter mode is turned on." & _
"The active cell will be spoken when the Enter " & _
"key is pressed or it is done being edited."
Else
MsgBox "The Speaker On Enter mode is turned off."
End If
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。