When writing code that exports to a plain text file, it's often necessary to embed special characters, such as carriage returns, line feeds, and tab characters. VB has special constants defined for many of these characters:
vbTab - Tab character
vbLf – Line feed
vbCr – Carriage Return
vbCrLf – Carriage return/line feed combination
These constants are available in VB 6 and I believe they are also available in VB 5. Prior to that, I don't remember. However, you can easily substitute the control code using the Chr (or Chr$) function:
vbTab = Chr(9)
vbLf = Chr(10)
vbCr = Chr(13)
vbCrLf = Chr(13) & Chr(10)