Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programatically updating a spreadsheet hosted on google docs

I've got a pre-existing spreadsheet hosted on google docs. Each month I update this document. I've got a template workseet in the spreadseet that I'd like to clone and then update.

I'd prefer to clone the worksheet rather than create it from scratch as it has some pretty complex formulas.

I'm using the Python api for the google docs here:

http://code.google.com/apis/spreadsheets/data/1.0/developers_guide_python.html

Does anyone know how to clone and copy a worksheet in a pre-existing document?

Edit

I seemed to have confused one reader. I don't have an excel spreadsheet. I only have a Google Docs spreadsheet that has a template worksheet.

I'd like to clone this worksheet, rename it and then edit it programatically.

like image 308
chollida Avatar asked Dec 03 '09 05:12

chollida


People also ask

How do I automatically update the date in Google Sheets when a cell is updated?

The formula "=TODAY()" displays the current date whenever the sheet is recalculated. The formula "=NOW()" displays the current date and time when the sheet is recalculated.

How do I add a timestamp to Google Sheets automatically when the data is updated?

Use the formula =TEXT( NOW(), "hh:mm:ss" ) to show the current time. If you only want to show the timestamp and not the date, you can modify the formula using the TEXT() function. Copy and paste or type =TEXT( NOW(), "hh:mm:ss" ) into the cell where you want to display the time.


1 Answers

  1. Clone your template worksheet using the instructions on Copying Documents
  2. Access the list of worksheets within the cloned document and iterate through to the required spreadsheet.
  3. Use the cell feed to get the appropriate cell in your spreadsheet, then update the values.
like image 200
DoctorRuss Avatar answered Oct 13 '22 00:10

DoctorRuss