Thread: Formula
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
MSP77079[_26_] MSP77079[_26_] is offline
external usenet poster
 
Posts: 1
Default Formula

the VBA code is exactly as you wrote it.

But, as long as you are in VBA, why would you want to do it that way?

Why not:

Total = 0
For i = 1 to 4
Total = Total + cells(i, "A")
Next

--
Message posted from http://www.ExcelForum.com