Ray.Mason
08-27-2012, 07:48 AM
Hi guys!
I have a 6 column table where currently I can filter dates in column 4 i.e. Ascending. However I also want to use column 6 as second filter based on bg color i.e. red, green, orange. I have looked at help page in vba but I can't seem to find any solution. Below is my current code that filters on column 3;
t.Sort _
ExcludeHeader:=True, _
FieldNumber:="Column 3", SortFieldType:=wdSortFieldDate, SortOrder:=wdSortOrderAscending, _
FieldNumber2:="", SortFieldType2:=wdSortFieldAlphanumeric, SortOrder2:=wdSortOrderAscending, _
FieldNumber3:="", SortFieldType3:=wdSortFieldAlphanumeric, SortOrder3:=wdSortOrderAscending
Any help will be greatly appreciated.
Many thanks!
Ray
I have a 6 column table where currently I can filter dates in column 4 i.e. Ascending. However I also want to use column 6 as second filter based on bg color i.e. red, green, orange. I have looked at help page in vba but I can't seem to find any solution. Below is my current code that filters on column 3;
t.Sort _
ExcludeHeader:=True, _
FieldNumber:="Column 3", SortFieldType:=wdSortFieldDate, SortOrder:=wdSortOrderAscending, _
FieldNumber2:="", SortFieldType2:=wdSortFieldAlphanumeric, SortOrder2:=wdSortOrderAscending, _
FieldNumber3:="", SortFieldType3:=wdSortFieldAlphanumeric, SortOrder3:=wdSortOrderAscending
Any help will be greatly appreciated.
Many thanks!
Ray