In this blog we will know how to populate one column from excel.
Imports System.Data.OleDb
Module Module1
Public con As OleDbConnection
Sub pintu(ByVal s As String)
con = New OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source='" & s & " '; " & "Extended Properties=Excel 8.0;")
End Sub
Public com As OleDbCommand
Public ds As DataSet
Public oledbda As OleDbDataAdapter
Public dt As DataTable
Public str As String
End Module
Imports System.Data.OleDb
Public Class Form1
Private Sub btnbrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnbrowse.Click
Dim openfiledialog1 As New OpenFileDialog

Join the conversation! Your thoughts help the community grow.