Row or column index is out of range. Note that valid indexes must start from 1.

Error code: 0x8001040AL

Problem

This happens because the specified row or column's number is out of range.

Solution

Ensure the given number of row or column is in the valid range. Note that the row and column numbers starts from 1.