I have created an excel workbook with many sheets like sheet1, sheet2,... etc. How can I rename these tab names dynamically in C#?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
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:
Regards, Jörg
You didn't spedify how do you access the excel file. However, example from here might be useful for you if you're using
Microsoft.Office.Interop.Excel
. Note that it opens first sheet in the file, line:(Worksheet)xlBook.Worksheets.get_Item(1)