You could also use
Dim Steps(1 to X) as String
For j = 1 To X Step 1
Steps(j) = ActiveCell.Offset(0, 7 + j).Value
MsgBox Steps(j)
Next j
Note:- the array starts at 1
Here are 2 others ways to fill an array from a sheet without looping through the cells
Dim Steps As Variant
Dim X As Long
X = Range(ActiveCell.Address, ActiveCell.End(xlDown)).Row
Steps = Range(ActiveCell.Address, Cells(X, ActiveCell.Column)).Value
Dim Steps As Variant
Dim Rng As Range
Set Rng = Range(ActiveCell.Address, ActiveCell.End(xlDown))
Steps = Range(ActiveCell.Address, Rng.Address).Value
Set Rng = Nothing
Bookmarks