Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How does a macro total columns when sheets have diff row counts?

I am trying to have a recorded macro sum the columns in my range. My
spredsheets have differing row counts so I want my macro to recognize and sum
accordingly.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default How does a macro total columns when sheets have diff row counts?

One way:

Dim dSum As Double
With ActiveSheet
dSum = Application.Sum(.Range( _
.Cells(1, 1), .Cells(.Rows.Count, 1))
End With

In article ,
Chuck@qgold wrote:

I am trying to have a recorded macro sum the columns in my range. My
spredsheets have differing row counts so I want my macro to recognize and sum
accordingly.

Reply
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 that counts the Nbr of Teams and calculate the total & Ratio Jurassien Excel Discussion (Misc queries) 0 March 6th 07 05:20 PM
macro to compile columns on multiple sheets simonsmith Excel Discussion (Misc queries) 2 May 9th 06 04:06 PM
Is it possible to build macro that compares diff workbook columns AMXAH Excel Worksheet Functions 2 December 9th 05 09:00 PM
show in a excel graphic a total percentage for 5 diff data fiels Julio Charts and Charting in Excel 1 September 1st 05 01:26 PM
Averages and Counts from different columns sonofroy Excel Worksheet Functions 21 May 6th 05 08:13 PM


All times are GMT +1. The time now is 04:35 PM.

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

About Us

"It's about Microsoft Excel"