Hi everyone ...
brand new to this forum and just learning vb/vba.
In Excel, i am trying to write a function.
I have several named ranges and have figured out how to loop through the ranges and get a total of all cells in all ranges.
Now what I am trying to figure out is ...
I want to create 4 arrays. 1 for each named range in this spreadsheet(all the ranges are different lenghts and will be added to often). I then want to loop through each range and assign each cells value to one element of the array, reDim and Preserve the array, then get the next value. Once I have all the elements, I can (hopefully) perform some calculations based on certain criteria.
I am calling the function from a command button click event.
Any help, ideas, or direction to examples is appreciated.
Thanks
