OfficeDataSourceObject.SetSortOrder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the sort order for mail merge data.
public void SetSortOrder (string SortField1, bool SortAscending1 = false, string SortField2 = "", bool SortAscending2 = false, string SortField3 = "", bool SortAscending3 = false);
abstract member SetSortOrder : string * bool * string * bool * string * bool -> unit
Public Sub SetSortOrder (SortField1 As String, Optional SortAscending1 As Boolean = false, Optional SortField2 As String = "", Optional SortAscending2 As Boolean = false, Optional SortField3 As String = "", Optional SortAscending3 As Boolean = false)
Parameters
- SortField1
- String
Required String. The first field on which to sort the mail merge data.
- SortAscending1
- Boolean
Optional Boolean. True (default) to perform an ascending sort on SortField1
; False to perform a descending sort.
- SortField2
- String
Optional String. The second field on which to sort the mail merge data. Default is an empty string.
- SortAscending2
- Boolean
Optional Boolean. True (default) to perform an ascending sort on SortField2
; False to perform a descending sort.
- SortField3
- String
Optional String. The third field on which to sort the mail merge data. Default is an empty string.
- SortAscending3
- Boolean
Optional Boolean. True (default) to perform an ascending sort on SortField3
; False to perform a descending sort.