PC Review


Reply
Thread Tools Rate Thread

Adding Column A for All sheets : Please HELP

 
 
jhong
Guest
Posts: n/a
 
      1st Feb 2008
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
 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      1st Feb 2008
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
(E-Mail Removed)



"jhong" <(E-Mail Removed)> wrote in message
news:d1bc77b2-b726-4b55-9e57-(E-Mail Removed)...
> 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


 
Reply With Quote
 
jhong
Guest
Posts: n/a
 
      1st Feb 2008
On Feb 1, 3:42*pm, "Nigel" <nigel-...@nosupanetspam.com> 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
> nigelnos...@9sw.co.uk
>
> "jhong" <jerome.tam...@gmail.com> wrote in message
>
> news:d1bc77b2-b726-4b55-9e57-(E-Mail Removed)...
>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 -


 
Reply With Quote
 
Nigel
Guest
Posts: n/a
 
      1st Feb 2008
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
(E-Mail Removed)



"jhong" <(E-Mail Removed)> wrote in message
news:7ef983c4-f86c-4785-8e10-(E-Mail Removed)...
On Feb 1, 3:42 pm, "Nigel" <nigel-...@nosupanetspam.com> 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
> nigelnos...@9sw.co.uk
>
> "jhong" <jerome.tam...@gmail.com> wrote in message
>
> news:d1bc77b2-b726-4b55-9e57-(E-Mail Removed)...
>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 -


 
Reply With Quote
 
jhong
Guest
Posts: n/a
 
      5th Feb 2008
It was a BIG help Nigel!! Thank you! Thank you!!


On Feb 1, 10:20*pm, "Nigel" <nigel-...@nosupanetspam.com> 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
> nigelnos...@9sw.co.uk
>
> "jhong" <jerome.tam...@gmail.com> wrote in message
>
> news:7ef983c4-f86c-4785-8e10-(E-Mail Removed)...
> On Feb 1, 3:42 pm, "Nigel" <nigel-...@nosupanetspam.com> 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
> > nigelnos...@9sw.co.uk

>
> > "jhong" <jerome.tam...@gmail.com> wrote in message

>
> >news:d1bc77b2-b726-4b55-9e57-(E-Mail Removed)...
> >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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding digits in a column based on data in a separate column adriver Microsoft Excel Misc 5 21st Apr 2010 12:41 AM
adding data column without changing sheets Fan924 Microsoft Excel Programming 2 28th Sep 2009 05:54 AM
Column Chart - Adding text in the column in Excel 2007 Jennifer Microsoft Excel Charting 2 26th Jul 2008 02:58 PM
Copy column A and column D from all sheets into new worksheet al007 Microsoft Excel Programming 1 21st Jan 2006 10:49 AM
Copy column B and column E from all sheets into new worksheet al007 Microsoft Excel Programming 2 21st Jan 2006 07:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:31 AM.