Take the 2-minute tour ×

If I want to scroll to a particular paragraph in Google Docs, or a particular cell in Google spreadsheets, is there a way to do that via Google Apps script?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

For Google Doc Spreadsheet, you just need to set the active selection, the scroll is then done directly:

var file = SpreadsheetApp.getActiveSpreadsheet();
var sheet = file.getActiveSheet();
var row = LineToScrollTo;
share|improve this answer
add comment

Your Answer


