I've been doing some stuff by reading a range into memory and then looping thru it as an array and wondering if I can access ranges within the array to delete or simply stick into another array
So I'd simply declare my array then get the data by say
MyArray=Range("A1:C50").Value
Then access individual data within there as so
MyArray(1,1) for A1 data etc
How would I access say the equivalent data for the Range("A1:B5").Value and could I also overwrite that block en masse i.e, just set that portion of the array to blank cells in a similar way to just Range("A1:B5").Value="" if I was doing it on the sheet and not the array.
Thanks
So I'd simply declare my array then get the data by say
MyArray=Range("A1:C50").Value
Then access individual data within there as so
MyArray(1,1) for A1 data etc
How would I access say the equivalent data for the Range("A1:B5").Value and could I also overwrite that block en masse i.e, just set that portion of the array to blank cells in a similar way to just Range("A1:B5").Value="" if I was doing it on the sheet and not the array.
Thanks