I did NOT include all of the code, but I have now added the selection part
and is that now all of the code? The line you added would only make a difference if you already had multiple cells selected - it would then select just the active one of those.