Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Adding Column A for All sheets : Please HELP

Hi There,


I need your help, I want to do a macro that will add all values from
column A of all sheets within a workbook. Please please help me.


Thanks in Advance!

Jong
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Adding Column A for All sheets : Please HELP

Please explain some more. When you say add do you mean "Sum" or "Copy", do
you mean the entire column of each row in Column on each sheet?


--

Regards,
Nigel




"jhong" wrote in message
...
Hi There,


I need your help, I want to do a macro that will add all values from
column A of all sheets within a workbook. Please please help me.


Thanks in Advance!

Jong


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Adding Column A for All sheets : Please HELP

On Feb 1, 3:42*pm, "Nigel" wrote:
Please explain some more. *When you say add do you mean "Sum" or "Copy", do
you mean the entire column of each row in Column on each sheet?

--

Regards,
Nigel


"jhong" wrote in message

...
Hi Nigel,


Thanks for the reply, i mean summing up data from A column from
different sheets within a workbook. I hate adding this values thru
link hope you can help me. Thanks in advance again!


Hi There,


I need your help, I want to do a macro that will add all values from
column A of allsheetswithin a workbook. *Please please help me.


Thanks in Advance!


Jong- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Adding Column A for All sheets : Please HELP

Try something like.....(sums all values in column A of all sheets)

Sub aTotals()
Dim wS As Worksheet
Dim cTotal As Double, sRange As Range

For Each wS In Worksheets
With wS
Set sRange = .Range("A1:A" & .Cells(.Rows.Count, "A").End(xlUp).Row)
cTotal = cTotal + Application.WorksheetFunction.Sum(sRange)
End With
Next wS
MsgBox cTotal
End Sub


--

Regards,
Nigel




"jhong" wrote in message
...
On Feb 1, 3:42 pm, "Nigel" wrote:
Please explain some more. When you say add do you mean "Sum" or "Copy", do
you mean the entire column of each row in Column on each sheet?

--

Regards,
Nigel


"jhong" wrote in message

...
Hi Nigel,


Thanks for the reply, i mean summing up data from A column from
different sheets within a workbook. I hate adding this values thru
link hope you can help me. Thanks in advance again!


Hi There,


I need your help, I want to do a macro that will add all values from
column A of allsheetswithin a workbook. Please please help me.


Thanks in Advance!


Jong- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Adding Column A for All sheets : Please HELP

It was a BIG help Nigel!! Thank you! Thank you!!


On Feb 1, 10:20*pm, "Nigel" wrote:
Try something like.....(sums all values in column A of all sheets)

Sub aTotals()
Dim wS As Worksheet
Dim cTotal As Double, sRange As Range

For Each wS In Worksheets
* With wS
* *Set sRange = .Range("A1:A" & .Cells(.Rows.Count, "A").End(xlUp).Row)
* *cTotal = cTotal + Application.WorksheetFunction.Sum(sRange)
* End With
Next wS
MsgBox cTotal
End Sub

--

Regards,
Nigel


"jhong" wrote in message

...
On Feb 1, 3:42 pm, "Nigel" wrote:

Please explain some more. When you say add do you mean "Sum" or "Copy", do
you mean the entire column of each row in Column on each sheet?


--


Regards,
Nigel


"jhong" wrote in message


...
Hi Nigel,


Thanks for the reply, i mean summing up data from A column from
different sheets within a workbook. I hate adding this values thru
link hope you can help me. Thanks in advance again!





Hi There,


I need your help, I want to do a macro that will add all values from
column A of allsheetswithin a workbook. Please please help me.


Thanks in Advance!


Jong- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -




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
Adding digits in a column based on data in a separate column adriver Excel Discussion (Misc queries) 4 April 21st 10 12:41 AM
adding sheets ganga Excel Discussion (Misc queries) 2 June 16th 09 03:40 AM
Column Chart - Adding text in the column in Excel 2007 Jennifer Charts and Charting in Excel 2 July 26th 08 02:58 PM
Adding Sheets [email protected] Excel Discussion (Misc queries) 2 May 23rd 06 03:04 PM
adding sheets together Andrea[_7_] Excel Programming 3 November 7th 03 06:40 PM


All times are GMT +1. The time now is 01:21 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"