Thread: Code error
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
N.F[_2_] N.F[_2_] is offline
external usenet poster
 
Posts: 65
Default Code error

Why Im I getting an error in the third line in the code below???

Sub CreateAfile()
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("C:\Test.txt", True)
a.WriteLine ("Executable_File" & " " & "Input_File" & " " &
"Output_File" & " " & "Tabular_File")
a.Close
End Sub