Use Array Elements To Fill A Range
Use Array Elements To Fill A Range
Sub ArrayToTable()
'Fill arrays
vArray = Array(1, 2, 3, 4, 5, 6, 7)
lHeads = UBound(vArrayHeadings) + 1
lDataCells = UBound(vArray)
Else
Run "ArrayToTable"
End If
lHeads & " Columns Wide By " & lRows + 1 & " Rows High." _
Exit Sub
Else
Run "ArrayToTable"
End If
End If
With rTable
.Value = vArrayHeadings
.Font.Bold = True
End With
End With
rCell = vArray(lArrayElmnt)
lArrayElmnt = lArrayElmnt + 1
If lArrayElmnt = lDataCells Then Exit Sub
Next rCell
On Error GoTo 0
End Sub