How can I open a tab delimited .txt file in Excel from VB.NET code?
This question has been asked on many forums, but I can not find an answer anywhere that actually solves this problem.
Dim fileName As String = "file.txt"
Dim filePath As String = System.Reflection.Assembly.GetExecutingAssembly().Location
Dim fullFilePath As String = filePath.Substring(0, filePath.LastIndexOf("\"c)) & "\" & fileName
Public Sub OpenFileInExcel()
Process.Start("excel.exe", fullFilePath)
End Sub