G
gimme_this_gimme_that
Consider the following code:
Sub WriteHello()
Open "A.txt" For Output As #1
Print #1 "hello world"
Close #1
End Sub
How can this WriteHello Sub be modified so that the file descriptor is
an argument to a separtee Sub? Something like:
Sub WriteHello()
Open "emmett_output.txt" For Output As #1
PrintLine #1 ,"hello world"
Close #1
End Sub
Sub Println(f as variant, str as String)
Print f,str
End Sub
Eventually I want to write several Worksheets to a single TXT file.
"f" isn't a variant. What is it?
Thanks.
Sub WriteHello()
Open "A.txt" For Output As #1
Print #1 "hello world"
Close #1
End Sub
How can this WriteHello Sub be modified so that the file descriptor is
an argument to a separtee Sub? Something like:
Sub WriteHello()
Open "emmett_output.txt" For Output As #1
PrintLine #1 ,"hello world"
Close #1
End Sub
Sub Println(f as variant, str as String)
Print f,str
End Sub
Eventually I want to write several Worksheets to a single TXT file.
"f" isn't a variant. What is it?
Thanks.