LOCAL nRowStart,nRowEnd *m.nColumnStart && This will have to be translated into "A,B,C..." *m.nColumnEnd && This will have to be translated into "A,B,C..." *For simplicity, I'm not using the columns. But you get the idea. m.nRowStart = 1 && This may be dictated by your report layout m.nRowEnd = 100 && This may be dictated by your report layout exelApp.WorkSheets(1).Cells(1,2).Value = "Total:" exelApp.WorkSheets(1).Cells(1,3).Formula = ; "=SUM(A" + transform(m.nRowStart) + ":A" ; + transform(m.nRowEnd) && This yields SUM(A1:A100)HTH
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature