r/GoogleAppsScript • • Jul 20 '23

Question Help - where to start learning process?

Hey,

I'm an accountant whose really good at complex functions in sheets & excel. I see a huge benefit from learning Google App Script in my work, but I have no idea where to even start. Ideally I'd love to learn to pull data from outside sources to bring into my sheets. My work will pay for me to learn this, and I understand it'll take a long time.

My question here is, where do I even begin? Do you have any good suggestions of courses I could take?

Much appreciated!

12 Upvotes

11 comments sorted by

View all comments

1

u/knwpsk Jul 22 '23 edited Jul 22 '23

Be forewarned. Google provides no readable way to reuse your work from one spreadsheet to another, the way you can with Excel "personal macros". The closest answer Google has is that you should publish your code as a Google sheets add-on. The process for doing that is ridiculously complicated and I gave up.

I'm a big fan of Google sheets and I use it all the time, and I have numerous Google app scripts for various purposes.

This is the major weakness that Google workspace has, and drives me to continue using Excel for various things that I do repeatedly.

1

u/alvaroemur Aug 03 '23

I've had the same problem. I have lost track of where's my most recent library of reusable code.

What's your method for reusing code?

1

u/knwpsk Aug 08 '23

Well, a couple of answers:

  1. I still use Excel, because I have some great "personal macros" that I use constantly. Google Sheets foolishly doesn't support "personal macros" (usable across all files). Until they do, I'm still going to be an Excel user.

  2. I do have a lot of Google Apps Scripts, and many of them re-use the same functions. So I put those "utility" functions into a separate Apps Script project, and I call that my own "library". When I start a new Project, I link it to my "library" and then I can use those function calls without duplicating them in each new project. (This is NOT the same thing as a personal macro. This library is not related to spreadsheets at all. Rather, it's a bunch of functions that I use in various automated scripts. For example, I have one function called GetCurrentDateTimeYYYYMMDDHHMMSS(), and another called GetCurrentDateYYYYMMDD(), etc.)

1

u/alvaroemur Jan 14 '24

Yeah, that's basically what I'm doing too. Even the name is almost the same: utils.gs.

But this week I started experimenting with ChatGPT to convert some script I had to an add-on and it worked perfectly. You need to know some terminology first, so it's easier if you kind of study the situation until you feel you could solve it given enough time, and then comes ChatGPT to fill the gap for you. I'll see if this leads me to creating my own personal libraries to reuse in other projects.