Hyperlink to a specific sheet

后端 未结 6 1958
猫巷女王i
猫巷女王i 2021-02-08 01:45

I would like to open a specific sheet of a Google Sheets from a hyperlink in another spreadsheet.

I have different links in my master spreadsheet and each should have a

6条回答
  •  情深已故
    2021-02-08 02:21

    You can use this custom script (Tools > Script Editor) function and connect it with e.g. custom drawing (Insert > Drawing... > Save and Close, then right click on new drawing> Assign Script... > "goToSheet2")

    function goToSheet2() {
      goToSheet("Sheet2");
    }
    
    function goToSheet(sheetName) {
      var sheet = SpreadsheetApp.getActive().getSheetByName(sheetName);
      SpreadsheetApp.setActiveSheet(sheet);
    }
    

    Update:
    In the newest version you can select cell and add link (Insert > Link) and select link to specific sheet directly:

提交回复
热议问题