Spencer Farris
Spencer Farris
  • Видео 103
  • Просмотров 711 620
Copy with SHEET Protections
Make a copy of a sheet with sheet-level protections in the same spreadsheet. This does NOT affect the behavior of any built-in tools or menus and only works when the copy is triggered by the script
Sheet (make a copy from the File menu)
docs.google.com/spreadsheets/d/14HB-RDPq1f7bVUjsv1cyM4w9JqVgl_mCGFFK9Xu5cCc/edit?gid=0#gid=0
Script (the array.map version is in the script on the file but arrow functions cannot be in a RUclips description):
function copyWithProtections(){
const sh = SpreadsheetApp.getActiveSpreadsheet();
const ss = sh.getSheetByName("Template");
const prot = ss.getProtections(SpreadsheetApp.ProtectionType.SHEET)
let nSheet = ss.copyTo(sh).setName(sh.getNumSheets()-1);
let p ...
Просмотров: 384

Видео

Google Apps Script: Take Action Based On Formatting
Просмотров 2273 месяца назад
How to take an action (copy, move, email, PDF...) based on formatting (strikethrough, bold, italic, color...) Sheet (Make a copy from the File menu) docs.google.com/spreadsheets/d/19NxJbL76M0g8E0UGxG-QvpPabr0jNHzdFQkIBRWoCV4/edit?gid=0 Script: function myFunction(){ const sh = SpreadsheetApp.getActive(); const ss = sh.getSheetByName("First"); const sOut = sh.getSheetByName("Out"); const r = ss....
Google Sheets: Bold Different Words in a Cell with Apps Script and Retain Existing Formatting
Просмотров 8325 месяцев назад
How to bold (or apply other formatting) to a cell without losing existing formatting Inspired by this question on the Product Forums support.google.com/docs/thread/288793033/sheets-bold-specific-words-within-cell-using-apps-script Sheet (Make a copy from the File menu) docs.google.com/spreadsheets/d/1xUk0r3LCmFxvoVJ1ah2UzQNcutba5OwlQ38adc6sbdk/edit?gid=0#gid=0 Script function boldStuff() { cons...
DEPRECIATED - Google Sheets: Bold Different Words and Retain Existing Formatting
Просмотров 4035 месяцев назад
DEPRECTIATED Use ruclips.net/video/TBRmpWbFNvs/видео.html
Google Sheets / Apps Script - Move Data Down with Dropdown
Просмотров 5176 месяцев назад
How to move data down to the last row with a dropdown selection Sheet (make a copy from the File menu) docs.google.com/spreadsheets/d/1OD601_yrkCo0-kifKD3gToF5FUqHy_kMK1w8zrL3cmg/edit?gid=0 Script function onEdit(e){ if (!e) throw "Do not run from Editor"; moveDataDown(e); } function moveDataDown(e){ const r = e.range; if (r.rowStart 1 || r.columnStart != 3) return; const src = e.source.getActi...
Conditionally Insert Checkboxes
Просмотров 7549 месяцев назад
How to insert checkboxes when a condition is met from manual data Sheet (make a copy from the File menu) docs.google.com/spreadsheets/d/10ys1NPTPgGXvn7gEwLpt2iHoJ8qcMyT7u31mZwdjECA/edit?usp=sharing Script function onEdit(e){ if (!e) throw "Do not run from Editor"; insertFollowupCheckbox(e); } function insertFollowupCheckbox(e){ const r = e.range; if (r.columnStart != 2 || e.value greater_than_s...
Sort Sheets
Просмотров 94511 месяцев назад
How to sort the sheets in a spreadsheet alphabetically AND exclude a sheet from the sort Notes * You can exclude additional sheets by increasing the .splice() number and the index in the for () loop Spreadsheet (Make a copy from the File menu) docs.google.com/spreadsheets/d/1yrH_HvGlTdDd7s7WEKiGXCWR5H9Dn4UEiVAlLtniaVQ/edit Script (Replace less_than_sign and greater_than_sign appropriately) func...
Conditional Formatting Across 2 Sheets
Просмотров 21 тыс.Год назад
Conditional Formatting Across 2 Sheets
Google Sheets: Delayed Trigger After Event
Просмотров 1,8 тыс.Год назад
Google Sheets: Delayed Trigger After Event
Sort Range When New Data Entered
Просмотров 842Год назад
Sort Range When New Data Entered
Manipulate Rich Text Data - Extract Bold Text
Просмотров 1 тыс.Год назад
Manipulate Rich Text Data - Extract Bold Text
Use Checkboxes to Increment / Decrement over a Range
Просмотров 3,5 тыс.Год назад
Use Checkboxes to Increment / Decrement over a Range
Make a Button to Increment / Decrement a Value
Просмотров 28 тыс.Год назад
Make a Button to Increment / Decrement a Value
Google Sheets: Get Random Value From List
Просмотров 3 тыс.Год назад
Google Sheets: Get Random Value From List
Google Sheets Dropdown from List / CSV
Просмотров 3,3 тыс.Год назад
Google Sheets Dropdown from List / CSV
Highlight Cell vs Row
Просмотров 3202 года назад
Highlight Cell vs Row
Automatically Replace Value When Entered
Просмотров 2,2 тыс.2 года назад
Automatically Replace Value When Entered
Update Child Sheet Formulas When Parent Updated
Просмотров 9332 года назад
Update Child Sheet Formulas When Parent Updated
VLOOKUP() Compilation
Просмотров 7212 года назад
VLOOKUP() Compilation
A Sad Day (last video)
Просмотров 1,4 тыс.2 года назад
A Sad Day (last video)
Copy Values, Not Formulas / Archiving Data
Просмотров 1,1 тыс.2 года назад
Copy Values, Not Formulas / Archiving Data
Using JOIN() in QUERY()
Просмотров 1 тыс.2 года назад
Using JOIN() in QUERY()
Add a Datestamp on Bulk Paste
Просмотров 3413 года назад
Add a Datestamp on Bulk Paste
Google Sheets: Hide Formulas with IMPORTRANGE
Просмотров 14 тыс.3 года назад
Google Sheets: Hide Formulas with IMPORTRANGE
Connect to Calendar - Create Events From Spreadsheet
Просмотров 4 тыс.3 года назад
Connect to Calendar - Create Events From Spreadsheet
2-Way Sync: No Unique ID
Просмотров 2,2 тыс.3 года назад
2-Way Sync: No Unique ID
2-way Sync: Non-row ID
Просмотров 2 тыс.3 года назад
2-way Sync: Non-row ID
2-Way Sync: Row-aligned ID
Просмотров 2,9 тыс.3 года назад
2-Way Sync: Row-aligned ID
Custom Functions - Get Sheet Names
Просмотров 1,2 тыс.3 года назад
Custom Functions - Get Sheet Names
Move All Checked Rows
Просмотров 6 тыс.3 года назад
Move All Checked Rows