Results 1 to 7 of 7

Finding the sum of numbers in VBA

Threaded View

  1. #1
    Registered User
    Join Date
    10-05-2010
    Location
    London
    MS-Off Ver
    2007/2010/2011(Mac)
    Posts
    12

    Finding the sum of numbers in VBA

    Silly question,

    I have the following for loop:

    Dim i As Integer, count As Integer

    count = 0

    For i = 1 To 10
    count = count + 1
    Next i
    Now im not sure if i need the loop or not but how would i calculate the sum of the numbers that the loop passes i.e. 1,2,3,4,5 etc.
    Last edited by csr_cafc; 10-21-2010 at 09:58 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1