Skip to content

Instantly share code, notes, and snippets.

View moayadhani's full-sized avatar
😎
Creating

Moayad Hani moayadhani

😎
Creating
  • Malaysia
View GitHub Profile
@moayadhani
moayadhani / ModifyNamedRange.gs
Last active February 11, 2019 08:43
How to Add a New Cell to an Existing Named Range on Google Script
//This code is developed by Moayad Hani Yacoub Abu Rmilah and can be used freely for whatever purpose
/*This example shows how to:
1- create customized menu on Google Sheet using Google Script
2- Check if a sheet exists using sheet name
3- Get user entry by using UI dialog
4- Add a cell to an existing named range
5- Change text to camel case using regex expressions
6- Showing messages to the user */
@moayadhani
moayadhani / GetGmailEmails.gs
Last active March 7, 2024 21:05
Get Gmail Emails By Assigned Label
var ui = SpreadsheetApp.getUi();
function onOpen(e){
ui.createMenu("Gmail Manager").addItem("Get Emails by Label", "getGmailEmails").addToUi();
}
function getGmailEmails(){
var input = ui.prompt('Label Name', 'Enter the label name that is assigned to your emails:', Browser.Buttons.OK_CANCEL);
@moayadhani
moayadhani / ExtractSpecificTextFromEmail.txt
Last active March 7, 2024 07:02
Extract Email Text from Google Sheet using App Script
//Sample email that is received and whose details are extracted:
/*
*Someone* just submitted your form named Online Course Booking from your
website
https://www.abcd.com/
Message Details
Full Name: Mohamed Ali
Email Address: [email protected]
Phone Number: 009725991122334