Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I delete a worksheet from the workbook.
Hi everybody,
I'm creating an appliction in the C#. This application is working with excel. I could do a lot of things there. But I couldn't remove a worksheet from the workbook. How can I do it I wrote the following code below: ApplicationClass ac = new ApplicationClass(); Workbook wb = ac.Workbooks["Book1.xls"]; .... // code ((Worksheet)wb.Sheets["Sheet2"]).Delete(); The "Delete" method doesn't work. What's wrong here? Who knows how I can do it? Thank you very much. -- Sincerely yours, Michael Tkachev. ..Net Developer |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to delete a duplicate Excel worksheet within that worksheet? | Excel Discussion (Misc queries) | |||
How to Delete a Range in Closed Workbook (to Replace Delete Query) | Excel Discussion (Misc queries) | |||
in workbook, where is delete worksheet | Excel Worksheet Functions | |||
how do I delete a worksheet from my workbook | New Users to Excel | |||
how to protect from insert, delete, resequence worksheet in workbook | Excel Programming |