You will quite often get that error when trying to assign a cell value to a variable if the cell has a formula that results in an error.