# Writing a macro in Excel in Google Docs?

**URL:** <https://boards.straightdope.com/t/writing-a-macro-in-excel-in-google-docs/611989>\
**Category:** Factual Questions\
**Created:** [February 6, 2012, 5:26pm UTC](https://boards.straightdope.com/t/writing-a-macro-in-excel-in-google-docs/611989 "2012-02-06T17:26:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janeslogin](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@janeslogin](https://boards.straightdope.com/u/janeslogin)\
**Post date:** [February 6, 2012, 5:26pm UTC](https://boards.straightdope.com/t/writing-a-macro-in-excel-in-google-docs/611989/1 "2012-02-06T17:26:03Z")

</div>

Where does one start to learn how to write a macro in Excel in Google Docs? Are there tutorials out there somewhere?

---

<div class="post-metadata">

**Author:** ![yoyodyne](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@yoyodyne](https://boards.straightdope.com/u/yoyodyne)\
**Post date:** [February 6, 2012, 5:44pm UTC](https://boards.straightdope.com/t/writing-a-macro-in-excel-in-google-docs/611989/2 "2012-02-06T17:44:12Z")

</div>

Excel VBA macros are not compatible with Google Docs spreadsheets. Do you mean writing a macro in Google Apps Script for a Google Docs spreadsheet?

---

<div class="post-metadata">

**Author:** ![janeslogin](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@janeslogin](https://boards.straightdope.com/u/janeslogin)\
**Post date:** [February 6, 2012, 5:56pm UTC](https://boards.straightdope.com/t/writing-a-macro-in-excel-in-google-docs/611989/3 "2012-02-06T17:56:14Z")

</div>

Yes, Google Apps Script.

---

<div class="post-metadata">

**Author:** ![yoyodyne](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@yoyodyne](https://boards.straightdope.com/u/yoyodyne)\
**Post date:** [February 6, 2012, 6:11pm UTC](https://boards.straightdope.com/t/writing-a-macro-in-excel-in-google-docs/611989/4 "2012-02-06T18:11:32Z")

</div>

Tutorials are [here](http://code.google.com/googleapps/appsscript/articles.html), documentation [here](http://code.google.com/googleapps/appsscript/guide.html), spreadsheet-specific functions [here](http://code.google.com/googleapps/appsscript/service_spreadsheet.html).
