Hi Bruce,
Try the following code:
where "MyDataRange" is the named range on "Sheet1" from which you want to populate the array. The reason for the two "-1" terms is that array dimensions are zero-based by default. You can use "Option base 1" at the module level if you'd prefer one-based dimensions for arrays, but just remember that it applies to ALL arrays defined in that module.
Just for information, if you want to populate a RANGE from an ARRAY, it's a bit simpler, i.e.
BUT, and it's a BIG "but", you must make sure that the dimensions of the range receiving the data correspond exactly to the dimensions of the array from which the data are taken.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks