When the error occurs, press Debug, then hover the cursor over the mysheet variable in the highlighted line. You will get a little tooltip telling you the current value.