SortAscending 方法

       

以字母升序给段落或表格行排序。将第一段或表格第一行视为域名记录,不进行排序。可用 Sort 方法将域名记录包含在排序中。

注意   此方法为含有数据列的邮件合并数据源排序提供一种简化形式。对于大多数排序,请使用 Sort 方法。

expression.SortAscending

expression   必需。该表达式返回一个 RangeSelectionTable 对象。

示例

本示例以升序排列选定内容所在的表格。

If Selection.Information(wdWithInTable) = True Then
    Selection.Tables(1).SortAscending
Else
    MsgBox "The insertion point is not in a table."
End If