Get the caret out of a table
Posted: 2019-11-04 06:21:20
My document starts with a table
If the cursor is inside the table "Select Start" as expected selects the first cell of the table.
If the cursor is after the table outside of it "Select Start" quite unexpectedly also selects the first cell of the table.
Same thing after applying "Select All Document“ and then "Select Start".
It is possible to place the caret before (and not inside) the table on top of the document manually. But how to do this with a macro?
The Macro Reference, under the heading "TableSelection & Table Object Example" offers a code example to get the caret after a table. This is by using ".bound". But I am not sure how to get the caret BEFORE the table.
I have another problem with tables: I tried in vain to find out how to get a macro to apply shading to selected single cells (rather than to set shading to paragraphs which produces shading to the whole row containing the selected cells).
If the cursor is inside the table "Select Start" as expected selects the first cell of the table.
If the cursor is after the table outside of it "Select Start" quite unexpectedly also selects the first cell of the table.
Same thing after applying "Select All Document“ and then "Select Start".
It is possible to place the caret before (and not inside) the table on top of the document manually. But how to do this with a macro?
The Macro Reference, under the heading "TableSelection & Table Object Example" offers a code example to get the caret after a table. This is by using ".bound". But I am not sure how to get the caret BEFORE the table.
I have another problem with tables: I tried in vain to find out how to get a macro to apply shading to selected single cells (rather than to set shading to paragraphs which produces shading to the whole row containing the selected cells).