Can you make Range Equal All Values in an Array?
On Nov 14, 8:34 am, RyanH wrote:
I currently fill a range with array values like this.
' store control values
For i = 1 To UBound(ctrlArray)
Sheets("Data Storage").Cells(i, lngColumn) = ctrlArray(i)
Next i
Is there a way to make this faster? I thought you could use this line
below, but it doesn't seem to work.
Sheets("Data Storage").Range(Cells(1, lngColumn), Cells(UBound(ctrlArray) +
1, lngColumn)) = ctrlArray
--
Cheers,
Ryan
You need to add .value to end of asignment eg Range("A1:A5).value
You may have to use the worksheetfunction transpose.
|