Contents of an array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an array variable which contains 50 values between 1 and 11.
myValue(0) = 5, myValue(1) = 10, myValue(2) = 6 etc

Is there an easy way to get the sum of this array?
x = worksheetfunction.sum(myValue)? (I know this doesn't work).

Or do I need to do a For j = 0 to 49, Next j loop and sum as I go.

Thanks in advance.

Daniel
 
Oh. I got an error, but maybe that was for another reason. I'll go back to
the code and try again.

Thanks for helping.

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top