How to Sum an Array in VBA

Опубликовано: 14 Июнь 2026
на канале: Sean MacKenzie Data Engineering
1,568
43

In this episode, we're taking a look at how to sum up values in a VBA array. On this channel we have done some work with 1d and 2d arrays, mostly for speed in our applications. However, sometimes we need to do some math on our arrays and summing up all of the numbers in an array is high on the list for useful things to do when you're doing high-speed in-memory processing. We'll build an array of integers and then examine and sum up the values using two different methods, examining the benefits of each along the way.

Block spammers from harassing your Remote Desktop, filling your Windows security logs with failed RDP attempts, and burning up your bandwidth with my BZ RDP Cloaker:
https://buy.billzone.com/bzrdpcloaker...

Check out my easy time entry system for your business:
https://system.billzone.com/billzone

Join me on Patreon!
  / mackenziedataengineering  

Check out some tech (and support my channel!):
https://www.amazon.ca/shop/seanmacken...

Want the code from this video?
http://mackenziemackenzie.com/downloads

Interested in transforming your career or finding your next gig?
https://system.billzone.com/careers.html

Want my team to do a project for you? Let's get to it!
https://buy.billzone.com/smdeprojects...

Contact form you can find at http://www.mackenziemackenzie.com/

Follow me on social media:
  / mackenziedataanalytics  
  / seamacke  
  / seamacke  
  / seamacke  
  / psmackenzie  

Get Microsoft Office including Access:
https://click.linksynergy.com/fs-bin/...

Got a YouTube Channel? I use TubeBuddy, it is awesome. Give it a try:
https://www.tubebuddy.com/seanmackenz...

#msaccess #vba