Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

How can I link 2 cells in Google Docs in the same document, on the same spreadsheet?

I have a headings and every time I have to scroll down to the one I need. Can I create some kind of "header" on the top of the page and just click on the header I want and it will automatically scroll down?

share|improve this question
add comment

2 Answers

In this video you will find the solution! Have a look to that channel, always work with me!

https://www.youtube.com/watch?v=XBhewDy4fFY

share|improve this answer
1  
Please explain the answer here. Just linking to a video isn't actually answering the question. –  Andrew Lott Jan 16 at 11:05
add comment

You can use the following script:

function onOpen() {
    var sheet = SpreadsheetApp.getActiveSpreadsheet();
    var entries = [{name:"MyFunction", functionName:"myFunction"}];
    sheet.addMenu("Scripts", entries);
};

function myFunction() {
    var ss = SpreadsheetApp.getActiveSpreadsheet(); 
    var mysheet = ss.getActiveSheet();

    var input = Browser.inputBox("Input", "Input Row No. To Navigate:", Browser.Buttons.OK);
    mysheet.setActiveCell(mysheet.getDataRange().offset(input-1, 0, 1, 1));
};

As soon as you input the row number, you will be navigated to the "Cell" which is at the first Column in that row.

And in onOpen() function, I have coded to insert myFunction in the "Scripts" menu at the menu bar. I have entered this function in the script so that you don't have to run the script from script editor again and again and so that you can do it directly from the menu bar.

share|improve this answer
1  
Please stop linking to your own blog. You should copy the solution into the answer instead of just a link. –  Alex Aug 17 '12 at 14:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.