Click here to Skip to main content
15,909,193 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
slam alaikom
hi
can import data from excel to vb.net 2010??
Posted
Comments
SASS_Shooter 24-Apr-12 16:47pm    
Yes
Member 8497212 24-Apr-12 16:50pm    
how?? and thank u

Use Excel interop:

Create a solution. In the Solution Explorer tree view, select "References" node and use "Add Reference", the tab ".NET", choose "Microsoft.Office.Interop.Excel" of appropriate version. Use this namespace:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel%28v=office.11%29.aspx[^].

See MSDN help on this namespace and overview on Office and Excel programming:
http://msdn.microsoft.com/en-us/library/bb726434%28v=office.12%29.aspx[^].

—SA
 
Share this answer
 
v6
 
Share this answer
 
Hi, check the article: Exporting Data to Excel[^]
 
Share this answer
 
Comments
Member 8497212 25-Apr-12 14:56pm    
Thaaaaaaaaaaaaaaanks realy thaaaaaaaaaaaanks

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