语法
表达式.SortAscending
表达式 必选。一个代表 Table 对象的变量。
说明
将表格第一行视为域名记录,不进行排序。可用 Sort 方法将首行包括在排序中。此方法提供针对包含数据列的邮件合并数据源进行排序的一种简化形式。 对于大多数排序任务,请使用 Sort 方法。
示例
以下示例以升序排列包含所选内容的表格。
if(Selection.Information(wdWithInTable) == true){ Selection.Tables.Item(1).SortAscending() } else{ MsgBox("The insertion point is not in a table.") }