Click here to Skip to main content
15,881,898 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Michael Sync13-Aug-07 17:52
Michael Sync13-Aug-07 17:52 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Christian Graus13-Aug-07 20:34
protectorChristian Graus13-Aug-07 20:34 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Michael Sync13-Aug-07 20:56
Michael Sync13-Aug-07 20:56 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Christian Graus13-Aug-07 22:18
protectorChristian Graus13-Aug-07 22:18 
JokeRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Luc Pattyn13-Aug-07 23:49
sitebuilderLuc Pattyn13-Aug-07 23:49 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Michael Sync14-Aug-07 0:09
Michael Sync14-Aug-07 0:09 
Questionto import raw data and sort it accordingly from excel to vb Pin
miss naz13-Aug-07 15:39
miss naz13-Aug-07 15:39 
AnswerRe: to import raw data and sort it accordingly from excel to vb Pin
Andy_L_J14-Aug-07 23:19
Andy_L_J14-Aug-07 23:19 
You should look at using OLEDB Data Connections - much quicker than using reference to excel Application object.

Set up you connection something like this:

Dim cn As New OleDbConnection
cn = New OleDbConnection
cn.ConnectionString = "Provider=Microsoft.JET.OLEDB.4.0;" & _
"Data Source=" & filepath & ";" & _
"Extended Properties='Excel 8.0;HDR=YES;'"

- Where filepath is your Excel File and Excel x.x is the version of Excel on your system.

(You will need to add a reference to the Microsoft Excell Library)

Once this is set up you can write basic queries on the data. Use a OleDbCommand and OleDbDataAdapter and DataSet etc.to catch the data from Excel.

Make sure that your Excel Worksheets are "Flat",
IE: One Header Row and similar data in each column. Try to stick to same datatypes in each column.

There is quite a lot of information out there - Search for "Excel, OleDeb"

Hope this helpsSmile | :)




Kiwi Andy

QuestionMessage Box Pin
ejaz_pk13-Aug-07 12:43
ejaz_pk13-Aug-07 12:43 
AnswerRe: Message Box Pin
Christian Graus13-Aug-07 13:00
protectorChristian Graus13-Aug-07 13:00 
QuestionListview Column Width Pin
ejaz_pk13-Aug-07 12:28
ejaz_pk13-Aug-07 12:28 
QuestionFileSystemWatcher vb.net Pin
Cory Kimble13-Aug-07 10:25
Cory Kimble13-Aug-07 10:25 
AnswerRe: FileSystemWatcher vb.net Pin
Luc Pattyn13-Aug-07 10:46
sitebuilderLuc Pattyn13-Aug-07 10:46 
Questionlistivew subitem image Pin
ejaz_pk13-Aug-07 8:19
ejaz_pk13-Aug-07 8:19 
AnswerRe: listivew subitem image Pin
Christian Graus13-Aug-07 9:10
protectorChristian Graus13-Aug-07 9:10 
QuestionAdding events to webbrowser control Pin
Ahmad Zaidi13-Aug-07 7:49
Ahmad Zaidi13-Aug-07 7:49 
QuestionHow to code th MediaPlayer or the MS-Paint Pin
sizwe13-Aug-07 7:24
sizwe13-Aug-07 7:24 
AnswerRe: How to code th MediaPlayer or the MS-Paint Pin
kubben13-Aug-07 7:44
kubben13-Aug-07 7:44 
QuestionMoving files Pin
steve_rm13-Aug-07 4:41
steve_rm13-Aug-07 4:41 
AnswerRe: Moving files Pin
Kschuler13-Aug-07 4:58
Kschuler13-Aug-07 4:58 
AnswerRe: Moving files Pin
Tom Deketelaere13-Aug-07 5:03
professionalTom Deketelaere13-Aug-07 5:03 
QuestionRe: Moving files Pin
steve_rm13-Aug-07 5:52
steve_rm13-Aug-07 5:52 
AnswerRe: Moving files Pin
Tom Deketelaere13-Aug-07 20:57
professionalTom Deketelaere13-Aug-07 20:57 
QuestionMDI form closing Pin
Marcus J. Smith13-Aug-07 3:43
professionalMarcus J. Smith13-Aug-07 3:43 
AnswerRe: MDI form closing Pin
mr_lasseter13-Aug-07 3:51
mr_lasseter13-Aug-07 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.