Obtaining Excel worksheet reference by worksheet name via C#

Posted by Chapax on Stack Overflow See other posts from Stack Overflow or by Chapax
Published on 2010-03-22T09:38:54Z Indexed on 2010/03/22 9:41 UTC
Read the original article Hit count: 400

Filed under:
|

Hi,

I'm currently obtaining a handle to a Excel worksheet by using the below C# code:

*Excel.Worksheet worksheet = (Excel.Worksheet)sheets.get_Item(15);//Get the worksheet "SubSignOff" number*

Is there any way that I can obtain the same by using the worksheet name -- "SubSignOff" ?

Many thanks for your help.

--Chapax

© Stack Overflow or respective owner

Related posts about excel

Related posts about c#