willy
willy

Reputation: 43

How do I overwrite existing google sheet with similar name and data using google script?

I have done a bit of googling/ research and the code below is the closest to what I wanted to accomplish.

I have a spreadsheet with data and what the code does is to look at column A of the the source sheet and creates new sheets with the name in the that column and then carries all row data that matches that name to the new sheet.

This code works perfectly fine, I will appreciate help to modify it such that:

Upvotes: 0

Views: 1640

Answers (1)

Just
Just

Reputation: 437

This worked for me.

 if (copy) { 

 ss.deleteSheet(copy)

 }

Upvotes: 1

Related Questions