bbarr0073
asked on
How do I pull data from excel to VB form
I have an excel spreadsheet that I want to search names that are in columns C,D and E grab info from the cells on that row and display the data in a textbox. Can anyone point me to a tutorial link or show me how to go about writing code that will pull data from an data source excel file and display the information.
Form.PNG
Consolidation---center-10-13-11.xlsx
Form.PNG
Consolidation---center-10-13-11.xlsx
Where is the form?
ASKER
form now attached. thanks StephenJR
WindowsApplication1.sln
WindowsApplication1.sln
VB classic or VB.Net?
ASKER
VB classic, what would be difference. The way the data is stored?
I used this in the past, think it should work for you:
http://www.developerfusion .com/code/ 5322/worki ng-with-ex cel-files- using-vb6/
http://www.developerfusion
ASKER
What if I wanted to share this with multiple people. should it be .net and on a sql server. is there not a way to add the data to the application instead of storing in xl.ActiveWorkbook.Close False, "c:\book1.xls"
when you say "share" you mean available for others to work with the application at the same time?
if so, yes a better way would be using vb.net and sql server.
btw, vb.net is easy to handle if you used vb classic before:)
if so, yes a better way would be using vb.net and sql server.
btw, vb.net is easy to handle if you used vb classic before:)
ASKER
I already have a sql server. do you have any smaple for what I am trying to do for .NET.
So I have a few question, IF this was setup on a sql server I can use the same form that I created? what would be needed to be on users computer to use it and will they maybe one day be able to edit the data is its not correct. that would be awesome!
So I have a few question, IF this was setup on a sql server I can use the same form that I created? what would be needed to be on users computer to use it and will they maybe one day be able to edit the data is its not correct. that would be awesome!
ASKER
Thats right it is Visiual Studio 2010
This thread is for vb classic and excel. For a vb.net and sql server you should create a new question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.