How can I add a new Sheet ?
Closed this issue · 2 comments
iamvon commented
I cannot add a new Sheet to an exist Spreadsheet. I tried add a new Sheet when follow your code:
err = service.AddSheet(&spreadsheet, SheetProperties{ Title: "TestAddedSheet", Index: 1, })
But it turned out an error:
cannot use SheetProperties literal (type SheetProperties) as type spreadsheet.SheetProperties in argument to service.AddSheet
iamvon commented
Oh I can fix it simply by use Import declarations
for the library, thank you.
Iwark commented
Nice :)