How to rename excel sheet name dynamically in C#

后端 未结 2 635
礼貌的吻别
礼貌的吻别 2020-12-19 03:23

I have created an excel workbook with many sheets like sheet1, sheet2,... etc. How can I rename these tab names dynamically in C#?

2条回答
  •  离开以前
    2020-12-19 03:52

    One short note: If you don't need to specify them, you can get rid of all these optional parameters and use the short form:

    xlBook = (Workbook)xl.Workbooks.Open(laPath);
    

    Regards, Jörg

提交回复
热议问题