Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summing a range of numbers in Excel with VBA

Status
Not open for further replies.

yalamo

Technical User
Sep 22, 2002
244
0
0
IL
I want to sum a column of numbers in an Excel spreadsheet using VBA. Is there a way of doing it in a macro without using a For...Next loop. Like writing Range("A1.A10") and adding some operator? Or is there a way of accessing the Excel SUM function in VBA and using that?
 
application.worksheetfunction.Sum("A1:A10")

Everybody body is somebodys Nutter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top