TAB DELIMITED output
Hi,
I am using "Print" statement to create text file. I want it to be TAB delimited. Can anyone give sample code for this ?
Thanks.
[150 byte] By [
promod333] at [2007-11-11 8:10:17]

# 1 Re: TAB DELIMITED output
This is a possibility:
Dim strField As String
Open "c:\tmp\test.txt" For Output As #1
strField = "test1" & vbTab & "Description" & vbTab & "Number"
Print #1, strField
strField = "test2" & vbTab & "Description" & vbTab & "Number"
Print #1, strField
strField = "test3" & vbTab & "Description" & vbTab & "Number"
Print #1, strField
strField = "test4" & vbTab & "Description" & vbTab & "Number"
Print #1, strField
Close #1
# 2 Re: TAB DELIMITED output
Print #hFile, "column 1"; vbTab; "column 2"; vbTab; "column 3"