简体   繁体   中英

Delete column in excel file using ExcelJS

So i have an excel file and I want to delete a specific column ( for example: column I ).

I searched in the documentation and I can't find anything that indicates how to do that.

worksheet.spliceColumns(start, count, ...inserts)

which is somehow similar to javascript splice function.

so if you want to delete the whole B column

worksheet.spliceColumns(2, 1)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM