sum

  • Thread starter Thread starter banavas
  • Start date Start date
B

banavas

Dear Friends,

I defined a variable rL as Range which contains x columns and y rows.
My task is to calculate the sum of column i. How do I do that in a for
like

rL.Columns(i).sum()

Thanks!
G
 
MsgBox WorksheetFunction.Sum(RL.Columns(i))


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top