google-sheets-macros icon indicating copy to clipboard operation
google-sheets-macros copied to clipboard

A collection of custom macros for Google Sheets

Google Sheets Macros

If you enjoy my Google Workspace Apps Script work, please consider buying me a cup of coffee!


This repository contains custom macros for Google Sheets.

(For more information on Google Sheets macros, see Automate tasks in Google Sheets).


Installation

To manually install a Google Sheets macro:

  1. Open a new Google Sheet at sheets.google.com
  2. Open the script editor by selecting the Tools > Script Editor menu
  3. Copy and paste the desired macro code to the bottom of the Code.gs (or open script) file
  4. Click the Save icon or select the File > Save menu option to save the macro
  5. Close the Script Editor window

To import a Google Sheets macro:

  1. Select the Google Sheets Tools > Macros > Import menu
  2. Identify the macro to import and click the associated Add function option

To run a Google Sheets macro:

  1. Select the Google Sheets Tools > Macros > 'name of macro' menu

Macros

  • Benford's Law

  • Dates

    • AddCalendarDropdown() - Add calendar dropdown and date validation to active range.
  • Freeze

    • FreezeActiveSheet() - Freeze specified rows and columns on active sheet
    • FreezeAllSheets() - Freeze specified rows and columns on all sheets
  • TSCreateUrlCheatsheet

    • TSCreateUrlCheatsheet() - Create Google Workspace New URLs Cheatsheet
    • Blog Post
    • Aware of any other Google Workspace new resource URLs? Please let me know through the issues.

Change Log

  • 2021-03-20 - Add new Jamboard shortcut (jam.new) to TSCreateUrlCheatsheet().

License

google-sheets-macros License

© Laura Taylor (github.com/techstreams). Licensed under an MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.