View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gautam[_3_] Gautam[_3_] is offline
external usenet poster
 
Posts: 10
Default Formula req for macro

I need a macro which calculates the average for each column, tried the
following code, but didn't work out
activesheet.cells(1,1).formulaR1C1="=Average(R[maxrow]C:R[-2]C)"