Excel VBA How to populate a multi-dimensional (3d) array with values from multiple excel ranges?
问题 I'm trying to populate a 3d array from data stored in an Excel worksheet. I'm hoping I just don't know the syntax, but it may not be possible to 'batch' assign values to 3D arrays like you can with 2D arrays. Such as... Dim 2DArray() As Variant 2DArray = Range(A1:C10) This is so clean and efficient I was hoping for something equivalent, as opposed to using 3 nested for-next loops to populate the data one value at a time. For background this is to lookup/interpolate a gas compressibility