Google Sheets custom sidebar - google-sheets

I have a very long google sheets document. I often have to go to a specific area of that document to input data. I want to have a sidebar with designated hyperlinks to areas in the document to minimize the time it takes to get to the area I need to edit. How can I create a sidebar that reads links from a hidden tab displaying all the links I want displayed in the sidebar?

most likely it's not possible as you imagine it. instead, take a look on hyperlink jumps... right-click the cell you want to jump in and select Get link to this cell:
then just paste it in your separate sheet or side column/frozen row
to make it nicer you can use HYPERLINK formula and assign some short alias

Related

Duplicate Worksheet but keep values only in google sheets

I have a google sheets doc linked to another sheets document via IMPORTRANGE.
I wish to have a duplicate which mantains Values only without the link data, since i am lookin to update the data and make like monthly reports based on that.
Is there a way to duplicate the sheets via script or another function or either break the links but mantain the values?
Make the copy and enable the IMPORTRANGE(s).
Then select the entire sheet by clicking the blank rectangle just above the left-hand row numbers and to the left of the top column letters. With the sheet selected, click Ctrl-C to copy to clipboard.
With the full-sheet selection still active, hit Ctrl-V for "Paste Special." Look for a clipboard icon to appear lower-right on the visible screen area. Click it and choose "Paste values only."

How do I protect a shared google sheet with and still allow the script button to work?

I have a sheet that is shared with quite a few people. They are supposed to fill in 5 cells, click the script button and it will insert the text below and sort it by date.
I created the script and assigned it to the button for this.
I need to protect the entire sheet except the 5 cells and the button.
When I add the protection nobody can click on the button. Is there a workaround?
Answer:
You can use Protected Ranges to protect the sheet from edit with the exception of pre-defined cells.
Steps:
Follow the menu item Data > Protected sheets and ranges from the Sheets User Interface.
Click on the + Add a sheet or range button in the newly-opened sidebar.
Click the Sheet tab.
Select which of the Sheets you wish to have protected.
Mark the Except certain cells check-box with a click (✓) and select in A1 notation the 5 cells you wish for users to edit. For example D1:D6.
Click Ok
Click Set permissions
Keep Restrict who can edit this range selected with Only you as the selection in the drop-down, and press Done.
This is enough - from here anyone you share the sheet with will have edit access to the specific five cells you specified in the exception rule. The button is also clickable as long as the user has authenticated the function to run as them.
References:
Docs Editors Help - Protect, hide, and edit sheets

Google Sheets - How can I make a cell that calls on a macro?

The end goal is to have a cell at the end of a bunch of columns that will contain a button or hyperlink or checkbox that will tell the sheet to copy that whole row into another tab.
My first thought was to create a button in each row, but according to this question here, there is no way to anchor a button into a row and thus all information about that row would be lost when a user clicks the button.
My second and very painful thought was to create a hyperlink that sends an API payload to a GoogleSheetAPI demon I have written that manages these sheets with the row information. The hyperlink would contain the row information in the URL encoding. That would tell the demon to copy that row and put it in the input row.
The second seems so hackey and I feel like I'm missing something. Can I make a hyperlink that calls on a macro or function which will pass the row number?

Can I assign scripts to inserted images within cells or hyperlinks in Google Sheets?

I'm curious if there's a way to “assign script” to an image inserted into a cell using the =IMAGE(“URL”) method for Google Sheets? If not, is there a way to “assign script” to a hyperlink?
What I’d like to do is create a table of contents tab inside a Google Sheet that has many other tabs. On the table of contents, I’d love to have inserted images that act as buttons to navigate to these different tabs. I can “assign script” to images that have been inserted through the menu toolbar (e.g., Insert > Image or Insert > Drawing). However, it’s extremely clunky to have to realign my images if a new row is inserted into the table of contents.
I could always just use hyperlinks to navigate to each tab, but I don’t like how it opens a new window every time you click on the hyperlink. And I don’t like how it requires two clicks of a hyperlink (one click for the hyperlink, and then another click for the web address that pops up) to arrive at the desired tab.
So I guess, is there any option that exists to insert an image inside a cell, which can then be assigned a script?
This functionality would be so helpful.
Thanks for you time!
I've been searching and haven't found a way to insert a link to anything with an Image placed with the =IMAGE () option. I've resorted to text and formatting .
You can assign a script to change tabs via "floating" Images that are Inserted via insert menu. then on the picture on the top right corner click the arrow and assign the script " goToPage1 " or whatever you decide to call your function and page. it's not as fast as Excel but it works
var ss = SpreadsheetApp.getActiveSpreadsheet();
function goToPage1(){
ss.setActiveSheet(ss.getSheetByName("Page1"));
}
My only solution to this problem is to insert image within cell, then insert a transparent drawing and assign the script to that. It's not ideal, but at least it means the images are aligned perfectly, the transparent floating image just needs to be in the general area
At this time, only to OverGrid images.

Google Spreadsheets: How to create an anchor to a row inside the same sheet

is there a way in google spreadsheet to create an anchor text in order to jump from one row to another with a simple click without page reloading?
I'm not able to find a way...
Thank you
This is an old question, but I seem to have found a solution:
Select the Set of Cells you want to link to (Left-click + Drag)
Right-Click the Selected Cells ==> Select "Get link to this range"
The Sheet Link will now be copied to your clipboard and can now be accessed by anybody who has access to the sheet.

Resources