dan_l
Active Member
This is probably me being new to arrays:
So ideally I want to set a range, have the array store the range, do a bunch of stuff with it and output it elsewhere. I've been googling around a bit and found this:
http://www.cpearson.com/excel/ArraysAndRanges.aspx
But I'm still not getting where the above is going wrong.
Code:
Dim MyArray(1 To 1000, 2) As Long
Dim rSourceRange As Range
Dim rTargetRange As Range
Set rSourceRange = Range("B1:b1000")
Set rTargetRange = Range("g1:g1000")
MyArray = Range("b1:b1000")
So ideally I want to set a range, have the array store the range, do a bunch of stuff with it and output it elsewhere. I've been googling around a bit and found this:
http://www.cpearson.com/excel/ArraysAndRanges.aspx
But I'm still not getting where the above is going wrong.