Hi,
I and trying to write some code to open a *.CSV file and parse out and cariage returns in it.(Where user would hit enter). I have never wrote any code to parse a file so I am not even sure if i am going about this the right way. I am using the code bellow to open the file. Once i get it open though, I dont really know where to go from there. Any help would be appreciated
Code
_______________________________
Public Sub Parse_File_Click()
Dim RetVal As Long
Dim WSH As IWshShell
Dim WaitForTerm As Boolean
Dim Commandline As String
Dim Path As String
Dim PathFld As TextBox
Set PathFld = Me.Path_Name
Set WSH = New IWshShell_Class
Path = PathFld
Commandline = "C:\WINDOWS\NOTEPAD.EXE " & Path & ""
RetVal = WSH.Run(Commandline, vbNormalFocus, WaitForTerm)
End Sub
_____________________________________
Thanks
GTLoco
I and trying to write some code to open a *.CSV file and parse out and cariage returns in it.(Where user would hit enter). I have never wrote any code to parse a file so I am not even sure if i am going about this the right way. I am using the code bellow to open the file. Once i get it open though, I dont really know where to go from there. Any help would be appreciated
Code
_______________________________
Public Sub Parse_File_Click()
Dim RetVal As Long
Dim WSH As IWshShell
Dim WaitForTerm As Boolean
Dim Commandline As String
Dim Path As String
Dim PathFld As TextBox
Set PathFld = Me.Path_Name
Set WSH = New IWshShell_Class
Path = PathFld
Commandline = "C:\WINDOWS\NOTEPAD.EXE " & Path & ""
RetVal = WSH.Run(Commandline, vbNormalFocus, WaitForTerm)
End Sub
_____________________________________
Thanks
GTLoco