This works:
MaxVal = Application.WorksheetFunction.Max(Sheet1.Range("A1:F1"))
but not this:
MaxVal = Application.WorksheetFunction.Max(Range(Cells(1,1), Cells(1,6))))
neither do these:
MaxVal = Application.WorksheetFunction.Max(Range(Sheet1.Cells(1,1), Sheet1.Cells(1,6))))
MaxVal...