I wonder how I can use a loop that has the plus/adding/+ the two columns values with each other?
Thank you!
Printable View
I wonder how I can use a loop that has the plus/adding/+ the two columns values with each other?
Thank you!
Thread moved from the 'VBScript' forum (which is for code in .vbs files) to the 'Office Development/VBA' forum.
When you say "loop," are you looking for code to do this? If so, why not just use a formula?
u can use formula in VBA also like this, it's better than looping
it returns SUM of range A1:B100Code:MsgBox Application.WorksheetFunction.Sum(Range("A1:B100"))