I’m using Excel 2010 and I have a macro that needs to load OData results into an in-memory array. The only part I’m missing is how to actually create that array in Excel.
How do I create a multi-dimensional array (or an array of a class) in
Excel 2010?
The only constraint I have is that anything I build must be self contained in the XLSX. So that means dependencies on PowerPivot, addins, etc, are out. I think that leaves me with just VBScript macros.
I’ve searched MSDN, StackOverflow, and Google for hours and can’t find a clear-cut example of how to do this.
As an extension to @Jeremy ‘s answer:
you CAN redim multi dimensional arrays.
Whether Arrays, Collections (or Dictionaries for that matter) are best for your app depends on the details of your application