This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function main(){ | |
| var q = "mimeType='application/vnd.google-apps.spreadsheet' or mimeType='application/vnd.google-apps.presentation' or mimeType='application/vnd.google-apps.document'" | |
| var files = DriveApp.searchFiles(q) | |
| while (files.hasNext()) { | |
| var file = files.next(); | |
| var filename = file.getName(); | |
| if(filename.toString().split('_').lastIndexOf('PC')!=-1){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function copyRows() { | |
| var date = Utilities.formatDate(new Date(), "GMT+1", "dd/MM/yyyy") | |
| var filename = '12345' | |
| var header = []; | |
| var files = DriveApp.searchFiles("fullText contains "+filename+"and mimeType contains 'spreadsheet'") | |
| while(files.hasNext()){ | |
| var nxt = files.next() | |
| var id = nxt.getId() | |
| var ss = SpreadsheetApp.openById(id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function myfunction(){ | |
| var pivottables = 0 , charts = 0 | |
| var outputRows = [] , editors = [] ,viewers = [] | |
| var ss = SpreadsheetApp.getActiveSpreadsheet() | |
| var file = DriveApp.getFileById(ss.getId()) | |
| var firstSheet_Header = ["Name of File","Created","Number of People it Shared with", "Editors","Viewers","Number of PivotTables" ,"Number of Charts","Last Updated"] | |
| var secondSheet_Header = ["Name of File","Columns" ,"Rows" ,"Pivot Tables" ,"Charts"] | |
| var firstSheet = ss.insertSheet('Spreadsheet-Overview').appendRow(firstSheet_Header) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function copyGreenRows() { | |
| var date = Utilities.formatDate(new Date(), "GMT+1", "dd/MM/yyyy") | |
| var filename = 'your file name' | |
| var header = []; | |
| var files = DriveApp.searchFiles("fullText contains "+filename+"and mimeType contains 'spreadsheet'") | |
| while(files.hasNext()){ | |
| var nxt = files.next() | |
| var id = nxt.getId() | |
| var ss = SpreadsheetApp.openById(id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Removes duplicate rows from the current sheet. | |
| function removeDuplicates() { | |
| //Get current active Spreadsheet | |
| // var sheet = SpreadsheetApp.getActiveSheet(); | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheets = ss.getSheets() | |
| for(var s=0;s<sheets.length;s++){ | |
| //Get all values from the spreadsheet's rows | |
| var data = sheets[s].getDataRange().getValues(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function onOpen() { | |
| var menu = [ | |
| {name: "Configure", functionName: "config_"}, | |
| null | |
| ]; | |
| SpreadsheetApp.getActiveSpreadsheet().addMenu("➪ SingleColumn Rows to Columns", menu); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function onOpen() { | |
| var menu = [ | |
| {name: "Configure", functionName: "config_"}, | |
| null | |
| ]; | |
| SpreadsheetApp.getActiveSpreadsheet().addMenu("➪ SingleColumn Rows to Columns", menu); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import os | |
| import os.path, time | |
| import gspread , re | |
| regex_url = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' | |
| name = input('Please Enter Your Name : ') | |
| Email = input('Please Enter Your office emailId : ') | |
| directory = input('Input your directory path : ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import os | |
| import os.path, time | |
| import gspread , re | |
| regex_url = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' | |
| name = input('Please Enter Your Name : ') | |
| Email = input('Please Enter Your office emailId : ') | |
| directory = input('Input your directory path : ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function generateLandingPagesReport() { | |
| // Here give your data spreadsheet id | |
| var dataSpreadsheetId = "" | |
| var ss = SpreadsheetApp.openById(dataSpreadsheetId); | |
| var deck = SlidesApp.getActivePresentation(); | |
| var sheet = ss.getSheetByName('content-landing-pages'); | |
| // var values = sheet.getRange('A8:J17').getValues(); | |
| var values = sheet.getRange('A2:J3').getValues(); | |
| var slides = deck.getSlides(); |
NewerOlder