Results 1 to 3 of 3

Thread: Loop and sum via VBA

  1. #1
    Magician navic's Avatar
    Join Date
    Aug 2013
    Location
    Europe, Croatia
    Posts
    787
    Articles
    0
    Excel Version
    Excel 2013

    Question Loop and sum via VBA



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I need help.
    How to add some value to the existing value but for multiple rows and multiple columns via VBA macros
    This example has only three columns, I need to independently adjust the VBA code in case that I have more than three columns (addition is done on the same principle)
    Attached Files Attached Files

  2. #2
    Acolyte millz's Avatar
    Join Date
    Aug 2013
    Location
    Singapore
    Posts
    32
    Articles
    0
    Try this example, I don't know how are you going to determine how many rows or columns to be calculated, so I made the settings available in the code itself.
    Attached Files Attached Files

  3. #3
    Magician navic's Avatar
    Join Date
    Aug 2013
    Location
    Europe, Croatia
    Posts
    787
    Articles
    0
    Excel Version
    Excel 2013
    Quote Originally Posted by millz View Post
    ... so I made the settings available in the code itself.
    Hi @millz
    Great solution. Thank you so much.
    Problem solved

Posting Permissions

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