Results 1 to 5 of 5

Thread: VBA - Adding/Plus/+/Addition

  1. #1
    Junior Member
    Join Date
    May 12
    Posts
    18

    VBA - Adding/Plus/+/Addition

    I wonder how I can use a loop that has the plus/adding/+ the two columns values ​​with each other?

    Thank you!

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 02
    Location
    Bristol, UK
    Posts
    35,562

    Re: VBA - Adding/Plus/+/Addition

    Thread moved from the 'VBScript' forum (which is for code in .vbs files) to the 'Office Development/VBA' forum.

  3. #3
    Junior Member
    Join Date
    May 12
    Posts
    18

    Re: VBA - Adding/Plus/+/Addition

    Quote Originally Posted by si_the_geek View Post
    Thread moved from the 'VBScript' forum (which is for code in .vbs files) to the 'Office Development/VBA' forum.
    Sorry!

  4. #4
    Fanatic Member
    Join Date
    Oct 08
    Location
    Midwest Region, United States
    Posts
    988

    Re: VBA - Adding/Plus/+/Addition

    When you say "loop," are you looking for code to do this? If so, why not just use a formula?

  5. #5
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 07
    Location
    India
    Posts
    2,156

    Re: VBA - Adding/Plus/+/Addition

    u can use formula in VBA also like this, it's better than looping
    Code:
    MsgBox Application.WorksheetFunction.Sum(Range("A1:B100"))
    it returns SUM of range A1:B100
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


Posting Permissions

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