-
Notifications
You must be signed in to change notification settings - Fork 60
Added ability to rotate to a new sheet each month #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Is there any way to make this selectable from the SmartApp? I wouldn't want to have every sheet rotating every month. |
|
Having it configurable in the ST App would require another config var that is set and passed along in the call to google - lots of overhead when someone could just comment out the lines. I have a lot of data being written and so I end up with 1000s of entries and this was an easy way to separate it each month. |
|
Question @tsolid - If I implement this code.gs in google without any smartapp changes, how does the smart app know which sheet ID to use? I would assume the ID keeps changing and I need to come in and edit the smart app each month, is that right? Also do I need to follow a naming scheme in my starting excel sheet here for this to succeed on first setup? Thanks! |
|
Hey @shackrock it's the same workbook - it creates a new sheet each month, using the format yyyy-MM. Check out the screen shot from one of the ones I have setup: So you won't need to change the workbook-id each month. On first-run you can either have a sheet already created following yyyy-MM or it will auto-create one. |
|
Oh! I thought that a workbook had a limit even if you split it accross different sheets. My whole intent is to avoid filling up a workbook to the max capabilities of google docs really, this may not be a solve for that then, would it? |
It looks like the limit is 5 million cells - or if you use the default number of cells per sheet someone was able to make 193 sheets. So unless you're writing a TON of data then I think you're safe :) |
|
Hm, ok - I think you're right. I should be able to make one sheet a year essentially, and be totally fine, makes sense, thanks! |
|
I also answered you in the forum; I'm writing a TON of data and need multiple workbooks. |

I added the ability to rotate to a new sheet on a monthly cadence in case you have a lot of events each month/quarter/year.