Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load lblImportFileName.Text = ""End Sub
'''Header for the Excel file with Style to format the excel file ''' ''' Private sHeader As String = "" + _ " "xmlns:x=""urn:schemas-microsoft-com:office:excel"" xmlns:ss=""urn:schemas-microsoft-com:office:spreadsheet"" " + _ "xmlns:html=""http://www.w3.org/TR/REC-html40"">" + _ " False" + _ "False " + _ "" + _ "" + _ "" + _ "" + _ ""'Path of the Excel file Dim Strpath As String = "C:\Users\" & Environment.UserName & "\Desktop\test.xls"
Private sFooter As String = "
''' ''' to get the CSV file path ''' ''' ''' ''' Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then lblImportFileName.Text = OpenFileDialog1.FileName End If End Sub