> Why does this not work?
> strBody = "A : " & vbTab & vbTab & str1 & VBCRLF & VBCRLF & _
> "B : " & vbTab & vbTab & str2 & VBCRLF & _
> "C : " & vbTab & vbTab & str3 & VBCRLF & _
> "D : " & vbTab & vbTab & str4 & VBCRLF & _
> "E : " & vbTab & vbTab & str5 & VBCRLF
> I want strBody's result to look something like this:
> A 123
> B 123
> C 123
> D 123
> E 123
> But this is what I get:
That's strange. It worked for me when I cut and pasted it from your
message into a test script. Unless you're displaying the string in a
browser, such as IE, it should work. In general, all browsers ignore
tab characters (but they also ignore newlines???).
If you are in an html document, you either need to enclose the text in
<PRE></PRE> tags and accept a monospace font (usually Courier),
construct a table or use a string of ' ' spaces instead of tabs (I
know it's not the same as tabs).