Skip to content
Advertisement

Why did my code (that was supposed to put in column headers) wipe the whole Excel sheet blank with no headers?

I wrote this simple program for writing column headers to empty cells above a data table in a pre-existing Excel .xlsx file. I don’t get any errors when I run this, but when I open the file (with a single sheet), the whole table is gone and it’s blank; there’s not even any of the headers that it was supposed to write in. Can anyone please help me figure out why this happened? I can get the data again, I just need this to work.

JavaScript

Advertisement

Answer

You can try out this code

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement