Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 30th, 2007, 09:57 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default Import Excel to VB.Net

Hi,

I've been trying to import an Excel Workbook into VB.Net, but so far it hasn't worked for me. Can someone please point me in the right direction.

Thanks,
David

 
Old May 30th, 2007, 10:21 AM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

Try this, it should get you started:

http://p2p.wrox.com/topic.asp?TOPIC_ID=50975




Best Regards,
Earl Francis
 
Old May 30th, 2007, 11:12 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Earl!

I created a data grid and named it dg. However, I am getting an error saying: Name 'dg' is not declared
Do I have to declare it somehow?

 
Old June 6th, 2007, 10:17 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey, I got this thing working! I had the code in a module and I was getting an error. I put it in a click event and now it works.

Thanks Earl!

 
Old June 6th, 2007, 01:10 PM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

You are quite welcome!



Best Regards,
Earl Francis





Similar Threads
Thread Thread Starter Forum Replies Last Post
import Excel File to C#.net DataGridView therese C# 11 March 5th, 2010 05:28 AM
How to import from excel to database(sql) in .net jvraman General .NET 1 May 18th, 2006 05:51 AM
Import Multiple Unknown Excel Spreadsheets in .Net bcarmen Excel VBA 1 January 31st, 2005 04:46 PM
Excel text Import and VB Franck Excel VBA 0 January 8th, 2004 09:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.