* to get the address of a cell: cCell = loExcel.ActiveCell.Address * to use relative (R1C1) positioning you say "so many rows down", so many "columns right" * where negative numbers are accepted to move the other way (up,left). oExcel = CreateObject("Excel.Application") oWorkBook=loExcel.Workbooks.Add oExcel.Range("A1").Select oExcel.ActiveCell.FormulaR1C1 = "1" oExcel.Range("A2").Select oExcel.ActiveCell.FormulaR1C1 = "2" oExcel.Range("A3").Select oExcel.ActiveCell.FormulaR1C1 = "3" oExcel.Range("B1").Select oExcel.ActiveCell.FormulaR1C1 = "3" oExcel.Range("B2").Select oExcel.ActiveCell.FormulaR1C1 = "2" oExcel.Range("B3").Select oExcel.ActiveCell.FormulaR1C1 = "1" oExcel.Range("A4").Select oExcel.ActiveCell.FormulaR1C1 = "=CORREL(R[-3]C:R[-1]C,R[-3]C[1]:R[-1]C[1])" * to write a formula: oExcel.Range(cCell).Formula = "=Sum(B1:B3)" * or variables oExcel.Range(cCell).Formula = "=Sum(" + cCellFrom + ":" + cCellTo + ")"Does this help?