Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code error
I don'ty, but it c an be simplified
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 -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "N.F" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Error in Code | Excel Discussion (Misc queries) | |||
error in this code | Excel Worksheet Functions | |||
Code Error | Excel Discussion (Misc queries) | |||
Error Code 481 | Excel Discussion (Misc queries) | |||
Code error ?? | Excel Discussion (Misc queries) |