Hi all,
I'm trying to populate a worksheet using arrays.
ReDim TempArray(1 To rws) 'set the size of the array
Set TheRange = Range(Range("A2"), Range("A" & rws)) 'define the destination range
For iCount = 1 To rws
TempArray(iCount) = "=IF('Raw Data'!R[58]C="""","""",'Raw Data'!R[" & 57 + iCount & "]C)" 'fill the array
Next iCount
TheRange.FormulaR1C1 = TempArray 'transfer the array to the sheet
However, the output on the sheet suggests that icount has been incremented in steps of 2.
eg
=IF('Raw Data'!A60="","",'Raw Data'!A60)
=IF('Raw Data'!A62="","",'Raw Data'!A62)
=IF('Raw Data'!A64="","",'Raw Data'!A64)
=IF('Raw Data'!A66="","",'Raw Data'!A66)
=IF('Raw Data'!A68="","",'Raw Data'!A68)
=IF('Raw Data'!A70="","",'Raw Data'!A70)
=IF('Raw Data'!A72="","",'Raw Data'!A72)
Any ideas? Anyone?
Thanks,
Dave
Bookmarks