Selection always gives you the position of the cursor, I hope that is what you wanted 😊
Ivo Raemy
ASKER
Great, it works
DrTribos
No worries, you can also use (again, from memory) selection.range.information to find out if you are in a table and avoid any error if you are not in a table