Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to send information from textboxes to excel but ı want to send data to second or third page in excel. How can I do? I write a code but I am unable to select page.
MExcel.Application Exceluygulama = new MExcel.Application();
MExcel.WorkbookExcelkitap=Exceluygulama.Workbooks.Add(Application.StartupPath + "\\raporlar\\customer.xls");
MExcel.Worksheet Excelsayfa = (MExcel.Worksheet)Exceluygulama.ActiveSheet;
Exceluygulama.Visible = true;
Posted
Updated 19-Mar-10 4:56am
v2

thank you for your answer ı try index but not working so ı divide excel pages.one page customer one page another lıke that.so it is working.
 
Share this answer
 
v2
Worksheets are a collection, just access the one you want via the index. Remember also that arrays are 1 based in Excel interop.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900