Google Sheets Programming With Google Apps Script (2015 Revision Complete)
Google Sheets Programming With Google Apps Script (2015 Revision Complete)
Your Guide To Building Spreadsheet Applications In The Cloud
About the Book
All those who buy this version and those who have bought it already will get future updates and additions for free (2015 revision is complete).
Google Spreadsheets and Google Apps Scripts (GAS) are both evolving rapidly so I want to ensure that the material presented here remains up-to-date and continues to improve. Please email me details of any errors you find or with any suggestions you have for new material.
- Write user-defined spreadsheet functions.
- Manipulate the key Google API objects.
- Build user interfaces.
- Interact with other Google applications and services.
- Use a MySQL database running in the Cloud as a back-end data store.
Throughout there is an emphasis on practical applications.
It provides well documented code examples that can be cut-and-pasted and then modified to suit the reader's needs.
There is also an appendix for experienced Excel VBA users that shows common spreadsheet coding techniques in both VBA and Google Apps Script.
All the example code in this book is available for download as a single file at https://github.com/Rotifer/GoogleSpreadsheetProgramming_2015
Please send any feedback/queries/correction/requests for clarification to:
Chapter 1: Introduction
- 1.1 Google Sheets
- 1.2 Google Apps Script (GAS)
- 1.4 Summary Of Topics Covered
- 1.5 Software Requirements For This Book
- 1.6 Intended Readership
- 1.7 Book Code Available On GitHub
- 1.8 My Blog On Google Spreadsheet Programming
- 1.8 Guideline On Using This Book
- 1.9 2015 Update Notes
Chapter 2: Getting Started
- 2.1 Introduction
- 2.2 Google Apps Script Examples
- 2.2 Executing Code – One Function At A Time
- 2.3 Summary
Chapter 3: User-Defined Functions
- 3.1 Introduction
- 3.2 Built-in Versus User-Defined Functions
- 3.3 Why Write User-Defined Functions
- 3.4 What User-Defined Functions Cannot Do
- 3.7 Using JSDoc To Document Functions
- 3.8 Checking Input And Throwing Errors
- 3.9 Encapsulating A Complex Calculation
- 3.10 Numeric Calculations
- 3.11 Date Functions
- 3.12 Text Functions
- 3.14 Using A Function Callback
- 3.15 Extracting Useful Information About The Spreadsheet
- 3.16 Using Google Services
- 3.18 Summary
Chapter 4: Spreadsheets and Sheets
- 4.1 A Note On Nomenclature
- 4.2 Native And Host Objects
- 4.3 A Note On Method Overloading In Google Apps Script
- 4.5 Object Hierarchies
- 4.6 SpreadsheetApp
- 4.7 The Spreadsheet Object
- 4.8 The Sheet Object
- 4.9 Practical Examples Using Spreadsheet And Sheet Objects
- 4.10 Summary
Chapter 5: The Range Object
- 5.1 Introduction
- 5.2 Range Objects Are Complex
- 5.3 Creating A Range Object
- 5.4 Getting And Setting Range Properties
- 5.5 The Range offset() Method
- 5.6 The Sheet Data Range
- 5.8 Named Ranges
- 5.9 Practical Examples
- 5.11 Concluding Remarks
- 5.12 Summary
Chapter 6: MySQL And JDBC
- 6.1 Introduction
- 6.2 What Is JDBC?
- 6.3 MySQL Preliminaries
- 6.4 Connecting to a Cloud MySQL Database from the mysql Client
- 6.5 An Overview of JDBC
- 6.6 Note on Code Examples
- 6.7 Connecting to the Database
- 6.8 Create, Load, Query, Update and Delete a Database Table
- 6.9 Prepared Statements
- 6.10 Transactions
- 6.11 Database Metadata
- 6.12 A Practical GAS Example
- 6.13 Summary
Chapter 7: User Interfaces - Menus and Forms
- 7.1 Introduction
- 7.2 Adding A Menu
- 7.3 Building Forms With HtmlService
- 7.3.3 Defining Form Layout in CSS
- 7.4 Transferring Data from Google Sheets To an HtmlService Web Application
- 7.5 Create Professional-looking Forms the Easy Way - Use Bootstrap
- 7.6 Summary
Chapter 8: Google Drive, Folders, Files, And Permissions
- 8.1 Introduction
- 8.2 List Google Drive File And Folder Names
- 8.3 Creating And Removing Files And Folders
- 8.4 Adding Files To And Removing Files From Folders
- 8.5 File And Folder Permissions
- 8.6 Practical Examples
- 8.7 Summary
Chapter 9: Email and Calendars
- 9.1 Introduction
- 9.2 Sending An Email Using MailApp
- 9.3 Sending An Email With An Attachment Using MailApp
- 9.4 GmailApp
- 9.5 Calendars
- 9.6 Summary
Appendix A: Excel VBA And Google Apps Script Comparison
- Spreadsheets and Sheets
Appendix B: Final Notes
- Additional Resources
- Getting Source code For This Book From Github
- Blog Updates
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
El Manual del ManagerKeyvan Akbary, Félix López, and Álvaro Salazar
¿Has deseado alguna vez el haber tenido una buena introducción al rol del Engineering Manager? En este libro aprenderás lo necesario para ejercer el rol de una manera efectiva: Expectativas y Responsabilidades del Rol, 1-1s, Ayudar a Crecer, Objetivos, Planes de Carrera, Cultura, Feedback, Contratación, Cultura de Producto y mucho más.
Functional Design and ArchitectureAlexander Granin
Software Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.
Ansible for KubernetesJeff Geerling
Ansible is a powerful infrastructure automation tool. Kubernetes is a powerful application deployment platform. Learn how to use these tools to automate massively-scalable, highly-available infrastructure.
CCIE Service Provider Version 4 Written and Lab Exam Comprehensive GuideNicholas Russo
The service provider landscape has changed rapidly over the past several years. Networking vendors are continuing to propose new standards, techniques, and procedures for overcoming new challenges while concurrently reducing costs and delivering new services. Cisco has recently updated the CCIE Service Provider track to reflect these changes; this book represents the author's personal journey in achieving that certification.
CCIE SP v4.1 - WorkbookŁukasz Bromirski, Piotr Jablonski, and Nicholas Russo
Are you striving to prepare to and pass CCIE SP lab exam? Take the opportunity and get this workbook! With the attached initial cfg files you will prepare yourself for the CCIE SP exam as well as learn SP technologies applicable to all kinds of today modern networks! This workbook covers blueprint topics and provides challenging examples.
Practical FP in Scala: A hands-on approachGabriel Volpe
A practical book aimed for those familiar with functional programming in Scala who are yet not confident about architecting an application from scratch.
Together, we will develop a purely functional application using the best libraries in the Cats ecosystem, while learning about design patterns and best practices.
Ansible for DevOpsJeff Geerling
Ansible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
C++ Best PracticesJason Turner
Level up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Tame your Work FlowSteve Tendon and Daniel Doiron
Do you need a high performance enterprise governance approach improving management, execution and delivery while dealing with multiple projects/products, events, stakeholders and teams? Giving you better bottom line results, faster time to market, less work, better predictability, happier employees, and delighted clients? Then learn about TameFlow!
R Programming for Data ScienceRoger D. Peng
This book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
11 BooksThe Quality Software Bundle is for managers, would-be managers, and any of us who find themselves being managed and confused. This comprehensive bundle covers the entire span of software development approaches, from hacking through waterfall, cascade, prototyping, Iterative enhancement, reusable code, off-the-shelf, to Agile teams. The bundle...
The Node.js Bundle
3 BooksThis bundle combines three bestselling Leanpub Node.js books into a package that gives you everything you need to get started with developing Node.js applications at an unbeatable price.
The Tester's Library
8 BooksThe Tester's Library consists of eight five-star books that every software tester should read and re-read. As bound books, this collection would cost over $200. Even as e-books, their price would exceed $80, but in this bundle, their cost is only $49.99. Here are the books, and why they should be in your library: Perfect Software and Other...
11 BooksIn this bundle, you will find 10 different agile books. They are about different aspects of being agile. - finding a job - doing coding dojo's - Retrospectives - Personal kanban - a non-typical coaching book and even a book that gives you an insight in the lives of some agile people.
WTFlop 6M + HU - Beta Bundle
Growing Agile: Coach's Guide Series
4 BooksThis bundle provides a collection of training and workshop plans for a variety of agile topics. The series is aimed at agile coaches, trainers and ScrumMasters who often find themselves needing to help teams understand agile concepts. Each book in the series provides the plans, slides, handouts and activity instructions to run a number of...
Marionette.js A to Z
Complete Scala Bundle
3 BooksScala is a general-purpose programming language and it's getting extremely popular these days. Some say that learning Scala could be a challenging task. My experience, however, suggests that this is actually a myth that has very little to do with reality. With the right approach, learning Scala can be easy, fun and rewarding.The first book from...
Build A Better Backbone App
3 BooksThe best way to learn new development skills is through experience, but that takes time you don't have.Get the best of both worlds with this bundle: you'll learn how to produce modern web applications by learning from experienced developers like Derick Bailey and David Sulc. BackboneJS is one of the favorite tools on the web today, but it...
People Skills—Soft but Difficult
7 BooksPerhaps you've been told that "lack of people skills" has been holding you back. No wonder: you may have had hundreds of hours of technical training, but little or no "people skills" guidance.You've heard it said that people skills are "soft," whereas technical skills are "hard." For you, though, technical skills are "easy," but people skills...