View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Michele Michele is offline
external usenet poster
 
Posts: 90
Default Macro-total a column with different row sizes

Im trying to create a macro and Im having trouble with the last part. I
want to total a column (E) but the number of rows will vary day to day. For
example this totaled todays file with 726 rows but tomorrows file might
have 800 or 500 rows. How do I account for the various row size?

Range("E13").Select
Selection.End(xlDown).Select
Range("E726").Select
Selection.FormulaR1C1 = "=SUM(R[-724]C:R[-1]C)"