Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to create new sheet in excel using VJ#.Net
Hi,
I need a code to create a new sheet in the visual j sharp. i tried using this code but it does not work. //Using Excel 9.0 Object library import Excel.*; Excel.ApplicationClass xlApp = new Excel.ApplicationClass(); Workbooks books = (Workbook)xlApp.get_Workbooks(); //Adding excel Template _Workbook book = (_Workbook)books.Add(Excel.Xlsheet.xlWorksheet); Sheets sheets = (Sheets)book.get_Worksheets(); //Now trying to add sheet //Here add method takes .Add(Object before,Object after,Object Count, Object Type) // Sheets.Add(null,null,null,null); Could anyone tell me what i need to do to add sheet? thanks in advance. Tony |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to create Login & Log out Spread sheet in Excel with automated Attendance sheet | Excel Worksheet Functions | |||
Need a to automatically create a new excel from every sheet | Excel Discussion (Misc queries) | |||
create report in excel sheet | Excel Worksheet Functions | |||
how do I create more than 266 columns in an excel sheet? | Excel Discussion (Misc queries) | |||
is there anyway to create a clone of an excel sheet in vba? | Excel Worksheet Functions |