A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I am able to copy an entire worksheet of 20 columns x 1000 rows to a 2-dimensional array with a single statement as shown below...
Option Base 1
Dim ShtArray(1000,20)
.
.
.
ShtArray = Range("A1:T1000")
Is it possible to copy the same worksheet to a 3-dimensional array with a single statement in a similar way where the 1st dimension is the worksheet number and the 2nd and 3rd dimensions are the row and column values as above? I want to be able to copy 2 worksheets to the array without have to copy each worksheet column-by-column and row-by-row...
Option Base 1
Dim ShtArray(2,1000,20)
.
.
.
ShtArray(1,?,?) = Sheets("Sheet1").Range("A1:T1000")
ShtArray(2,?,?) = Sheets("Sheet2").Range("A1:T1000")