Auto Number Headings for Google Drive Documents
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Google Apps Script Auto Number Headings

Modified version of this script that adds a Headings tools Document menu allowing you to:

  • auto number Heading
  • clear Headings numbers

How to auto number Google Documents Headings:

  1. Open your document > Tools > Script editor...
  2. Start a blank project
  3. Paste the code from the file and save with your preffered name
  4. Select Run > onOpen and authorize the script for the first time
  5. Select Run > onOpen
  6. Change to your Document and try the functions on the Headings tools custom menu created.

Disclaimer: you may have issues with empty Headings.. But you can always fix them and run action again.