返回或设置朗读单元格的次序。Direction 属性的值为一个 XlSpeakDirection 常量。可读写。
XlSpeakDirection 可为以下 XlSpeakDirection 常量之一。 |
xlSpeakByColumns |
xlSpeakByRows |
expression.Direction
expression 必需。该表达式返回一个 Speech 对象。
在本示例中,Microsoft Excel 确定朗读的方向,并通知用户。
Sub CheckSpeechDirection()
' Notify user of speech direction.
If Application.Speech.Direction = xlSpeakByColumns Then
MsgBox "The speech direction is set to speak by columns."
Else
MsgBox "The speech direction is set to speak by rows."
End If
End Sub