lexcognito,
Note: in your original worksheet, you had A.i rather than A[i, hence the error as the range variable should (usually) appear on the left hand side of a definition if it's on the right hand side.
Wow! How did you figure that out??! Onscreen, those two look the same to me...