I am currently creating a spreadsheet in Google Apps that will be used to log client attendance. The spreadsheet contains 12 sheets. Each sheet represents a month of the year so sheet one represents January, sheet two represents February etc.
I am trying to create a Google Apps Script using the On_Open function to automatically open the relevant sheet based on the current date.
For example if the current date where 18/02/2013 then the Spreadsheet would automatically open with Sheet 2 (February) in focus.
I think I am correct in using SpreadsheetApp.setActiveSheet but I don't know how I would capture the date specifically the month with Google App Script.
I am assuming the script would flow a bit like the following?
If Date = 18/02/2013 then SpreadsheetApp.setActiveSheet 2
Any help would be gratefully received.