I want to achieve a bookmarking behavior like the example below using a custom script.
Selecting all table cells from the table:
Select a table cell:
Selecting table column from bottom to top:
1 answers
solution1
1 ACCPTED 2022-09-07 05:56:44
This is what worked for me:
function myFunction() {
var doc = DocumentApp.getActiveDocument();
var selection = doc.getSelection().getRangeElements();
var pos = selection[0].getElement();
doc.addBookmark(doc.newPosition(pos,0));
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.