最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Insert a column in exceljs - Stack Overflow

programmeradmin4浏览0评论

I have an existing xlsx file, with 4 columns. [ A, B, C, D ]. I want to insert a new column between A and B to have => [A, B, C, D, E] where B is new and C, D, E are the old [B, C, D]. I haven't found a method in the doc page

Doc :

I have an existing xlsx file, with 4 columns. [ A, B, C, D ]. I want to insert a new column between A and B to have => [A, B, C, D, E] where B is new and C, D, E are the old [B, C, D]. I haven't found a method in the doc page

Doc : https://github./exceljs/exceljs

Share Improve this question asked Oct 20, 2020 at 8:10 MarquisMarquis 1924 silver badges15 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

I found the method called "spliceColumns". It works perfectly. For my example => workbook.spliceColumns(2, 0, [])

发布评论

评论列表(0)

  1. 暂无评论