Dude, it took you 6 minutes to write that?
Are you sure he wants Dim cube(n-1)? I always forget, but while he wants n-1 in the loop, I think he would dim the array with n.
Are you sure he wants Dim cube(n-1)? I always forget, but while he wants n-1 in the loop, I think he would dim the array with n.