|
Visual Basic (VB and VBA) |
|
Copyright 1999-2001 Christopher Greaves. All rights reserved. Home Page and email to [email protected] |
| If in doubt, record a macro and inspect the entrails! |
Please read the DISCLAIMER.
Here is an INDEX to all the procedures.
You will probably need one copy of my GLOBAL DECLARATIONS.
Public Function TableSort(rngTable As Range, intColumn As Integer, lngSortOrder)
' Procedure: TableSort
' Description: Sort a table on a specified column in a specified sort sequence.
' Copyright: Chris Greaves Inc.
' Inputs: RANGE of table, INTEGER column (1,2,...), INTEGER sequence (0,1).
' Returns: None.
' Assumes: None.
' Side Effects: Page formatting may change.
' Tested: By the calls shown below.
rngTable.Sort ExcludeHeader:=False, FieldNumber:="Column " & Trim(str(intColumn)), SortFieldType:=wdSortFieldAlphanumeric, SortOrder:=lngSortOrder, Separator:=wdSortSeparateByTabs, SortColumn:=False, CaseSensitive:=False, LanguageID:=wdLanguageNone
'Sub TESTTableSort()
'Call TableSort(Selection.Tables(1).Range, 1, 0)
'Call TableSort(Selection.Tables(1).Range, 1, 1)
'End Sub
End Function
| We all knew nothing when we started … |
|
Home Page and Contact Information Send email to [email protected]. This page was last updated Thursday, November 15, 2001 |