LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
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)"

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Inserting Columns and then add column to horizontal total Alex Excel Discussion (Misc queries) 0 February 17th 10 11:16 AM
copying row/column sizes Gina Excel Discussion (Misc queries) 1 January 8th 09 05:26 PM
how can i see all column sizes at once not individually? Mary Lou Excel Discussion (Misc queries) 1 November 14th 07 07:55 PM
How do you get different column sizes in one sheet? Excel 2000 Margaret Excel Discussion (Misc queries) 2 April 5th 06 07:12 PM
excel should let me set row amd column maximum sizes bremsspur Excel Discussion (Misc queries) 0 August 17th 05 06:11 PM


All times are GMT +1. The time now is 06:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"