Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Lorenzo Lee   on Nov 26 In MS Office Category.

  
Question Answered By: Mamie Wallace   on Nov 26

I think this code  could help you

dim sum  as integer
dim i as integer
dim objSheet as worksheet
set objSheet=sheets("Sheet1") 'Sheet1 is worksheet Name
sum=0
for i=1 to 100
sum=objsheet.cells(i,2).value+sum
next
'Sum contains the final result

Let me know whether it worked fine or not

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on count the sum of a column Or get search suggestion and latest updates.


Tagged: