I created an array with named ranges in it.
Here's my code:
Sub Macro()
' - - - - - - - - - - - - - - - - -
Dim fruits As Variant
fruits = Array("Apple", "Banana", "Coconut")
For i = 1 To Length(fruits)
Cells(5, i).Select
ActiveCell.FormulaR1C1 = Range(fruits.Cells(i))(1)
Next i
End Sub
I'd like to call these named ranges from an array in a for loop. How can I do that? Thank you in advance.
I'd like to display the values of the named ranges, let's say, in the 5th row.


