Relative Content

Tag Archive for google-sheetsgoogle-apps-script

Closing tab prevents a script from finishing

I am building a script and want to include some failsafes to prevent the script from getting errors. One of the errors I am attempting to prevent is the script timing out every time the sheet is closed. Even if I reopen the sheet that runs the script before it finishes it’s task it still times out.

Retrieve URL from Google Sheets Cell that contains a link to another Google Drive document

In Google sheets it’s possible to ‘Insert > Link’ into a spreadsheet cell. This opens a dialoge where it’s easy to search for other document to which you have access on Google Drive, and thus to insert these into the cell. The cell then appears to contain the name of your chosen file, but by hovering over you can see a preview, and by clicking copy link you can retrieve the URL.

Google Macro to Save and Copy Date and Value of Cell into another Sheet

Kind of a macro noob. I’ve created a google sheets button that is meant to record the date at which the button is pressed in the next available row in column A in the sheet ‘History’ as well as copy the value of a cell (B13) from the sheet ‘Daily Tracker’ to the same row in column B. It is then meant to, with each successive click of the button, save that new information to the next row. Right now, the macro copies the date and 'Daily Tracker'!B13 to A1 and B1 over and over instead of continuing to A2:B2, A3:B3, etc.

Using textFinder to locate numbers from a column that also includes formulas

I am writing a small script to reconcile bank transactions against recorded budget entries in a sheet. The budget entries also include some formulas, for things such as Supermarket shopping which has many entries for a month. Problem is when I use textFinder, it gets a hit on a partial match when it is in a formula.