node-google-spreadsheet icon indicating copy to clipboard operation
node-google-spreadsheet copied to clipboard

Past column A (AA >)

Open tomdowning82 opened this issue 2 years ago • 2 comments

It seems the sheet only loads columns A-Z. I have a sheet with AA, AB, AC etc.. Any ideas?

tomdowning82 avatar May 27 '22 16:05 tomdowning82

The sheet is flat, nothing exists after Z, just monsters...

Perhaps it is just an oversight it how it figures out the column address.

Can you give a little more detail - are you using the row-based methods or cell-based methods?

theoephraim avatar May 31 '22 04:05 theoephraim

ha monsters 😈 Using row based method:

//Get total sheet using framework
state.doc = new GoogleSpreadsheet(state.docID);
await state.doc.useServiceAccountAuth(state.creds);
await state.doc.loadInfo(); 
			
state.originalSheet = state.doc.sheetsById[state.sheetID];			
await state.originalSheet.loadHeaderRow(3);
state.title = state.originalSheet.title;
state.originalRows = await state.originalSheet.getRows({
   offset: 1
});

tomdowning82 avatar May 31 '22 08:05 tomdowning82