Sort With Excel automation

Does anyone know the instruction to sort a excel file with navision automation control ? Thanks.

go in excel file make a macro sort the field and see the code by edit the macro and use that code