M
Mike Thomas
Using Access and Excell 2003, I am making and populating a spreadsheet from
an Access VB module. The numbers have been placed into contigious cells
(say B2...E2) , now I want to insert into column F2 a formula to sum these
values, eg:
=SUM(B2:E2)
However, my column and row address values are in integer variables, eg
intBegCol, intRow : intEndCol, intRow
where int Row = 2, intBegCol = 2 (eg col B), and intEndCol = 5 (eg col E)
I've been using this code to insert simple values:
objWKS.Cells(intRow, 2).Value = Nz(r!SumOfCourier, 0)
What would be the correct code to use to insert the formula above?
Many thanks
Mike Thomas
an Access VB module. The numbers have been placed into contigious cells
(say B2...E2) , now I want to insert into column F2 a formula to sum these
values, eg:
=SUM(B2:E2)
However, my column and row address values are in integer variables, eg
intBegCol, intRow : intEndCol, intRow
where int Row = 2, intBegCol = 2 (eg col B), and intEndCol = 5 (eg col E)
I've been using this code to insert simple values:
objWKS.Cells(intRow, 2).Value = Nz(r!SumOfCourier, 0)
What would be the correct code to use to insert the formula above?
Many thanks
Mike Thomas