Type mismatch error when trying to get value of A1 cell The following code is okey. (The following code adds a rectangle.)