How do I merge 2 Excel files into one excel file with separated sheets?

后端 未结 1 614
孤独总比滥情好
孤独总比滥情好 2021-01-27 04:18

I\'ve 2 Excel files, and I want to merge them into 1 file with separate sheets..

I trying to perform the merging with Microsoft.Office.Interop.Excel, but I don\'t under

相关标签:
1条回答
  • 2021-01-27 05:03

    Not really sure what the question is... but for merging excel files programmatically see for a starting point:

    • http://www.dotnetspider.com/forum/242869-How-merge-two-excel-sheets-c.aspx
    • http://www.dotnetperls.com/excel

    IF you need more information then show some code please and tell what exactly isn't working...

    EDIT - as per comment:

    You can use xlNewSheet.Cells to get a Range and use its Columns/Rows/Item properties change/add any values you want - i.e. in your case from valueArray...

    0 讨论(0)
提交回复
热议问题