I have an 'array' that has been convoluted into a single column. Each of the original rows is now in repeating blocks of 7 vertically contiguous cells. I can manually convert therm with a series of Transpose statements derived from a recorded macro. I got the "Unable to set the FormulaArray property of the Range class" when I attempted to reduce the multiple statements into a loop. Please see below"
Code:
Dim iVR As Integer ' Current row for column A
Dim iHR As Integer ' Current row for columns B:H
Dim iLstRow As Integer
iHR = 2
iLstRow = ActiveSheet.UsedRange.Row - 1 _
____ActiveSheet.UsedRange.Rows.Count
For iVR = 7 To iLstRow Step 7
Range("B" & iHR & ":H" & iHR).Select
Selection.FormulaArray = "=TRANSPOSE(R[ivr-2]C[-1]:R[ivr+4]C[-1])"
iHR = iHR + 1
Next
' Below is the first of the recorded macro statements
' Range("B2:H2").Select
' Selection.FormulaArray = "=TRANSPOSE(R[5]C[-1]:R[11]C[-1])"
' Range("B3:H3").Select
End Sub