*#include "xlconstants.h" #Define xlFillMonths 7 #Define xlFillSeries 2 #Define xlFillValues 4 #Define xlFillWeekdays 6 ox = createobject("Excel.Application") With ox .Workbooks.Add With .ActiveWorkbook.ActiveSheet .Range(.Cells(3,4), .Cells(3,52)).Value = 0 .Range("C3").Value = 12 .Range("C3").AutoFill(.Range(.Cells(3,3), .Cells(3,103)),xlFillSeries) .Range("B6").Value = "March" .Range("B6").AutoFill(.Range(.Cells(6,2), .Cells(6,52)),xlFillMonths) .Range("A1").Formula = "=sum(C3:Z3)" With .Range(.Cells(6,2), .Cells(6,52)) With .Font .Bold=.T. .Italic = .t. .color= rgb(0,0,255) Endwith .Interior.Color = rgb(255,255,0) Endwith .Columns("B:M").EntireColumn.Autofit Endwith .visible = .t. EndwithYou can get the syntax in most cases from Excel by recording a macro. Excel macro might not be the one you should apply for performance reasons but that comes very later.