P
powerranger
I'd like to know if there is a way to read the worksheet name of an
excel file.
Here is my code:
foreach(Excel.Worksheet sheet in thisworkbook.Sheets)
{
Response.Write (sheet.Name);
}
This code works if the names are like Sheet1, Sheet2, etc.. But if I
change the sheet1 to testsheet, it still dispays as Sheet1. Can
someone helps me? Thanks.
excel file.
Here is my code:
foreach(Excel.Worksheet sheet in thisworkbook.Sheets)
{
Response.Write (sheet.Name);
}
This code works if the names are like Sheet1, Sheet2, etc.. But if I
change the sheet1 to testsheet, it still dispays as Sheet1. Can
someone helps me? Thanks.