全部显示

Direction 属性

       

返回或设置朗读单元格的次序。Direction 属性的值为一个 XlSpeakDirection 常量。可读写。

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