I search the site and came across the following code
function SortWOA set chart=ActiveDocument.GetSheetObject("CH02") set Prop = chart.GetProperties set vars = Prop.Dimensions Prop.Dimensions(0).SortCriteria.SortByAscii = 0 Prop.Dimensions(0).SortCriteria.SortByExpression = 1 Prop.Dimensions(0).SortCriteria.Expression.v = "Sum(total4)" chart.SetProperties Prop end function