I'm creating an Outlook e-mail through VBA that runs off an Access form button click. For the .Body, I'm setting my 'strBody' string object using the following concatenated string:
strBody = "First Line of text here." & vbNewLine & _
vbNewLine & _
"Second Line of text here." & vbNewLine & _
Chr(187) & "Third Line of text here." & vbNewLine & vbTab & _
Chr(187) & "Fourth Line of text here." & vbNewLine & vbTab & _
Chr(187) & "Fifth Line of text here." & vbNewLine & vbTab & vbTab & _
Chr(187) & "Sixth Line of text here." & vbNewLine & vbTab & _
Chr(187) & "Seventh Line of text here." & vbNewLine & _
"Eighth Line of text here"
The resulting text in the e-mail body should be:
First Line of text here
Second Line of text here.
Third Line of text here.
Fourth Line of text here.
Fifth Line of text here
Sixth Line of text here.
Seventh Line of text here.
Eighth Line of text here.
And when debug.print(ing), it looks perfect in the immediate window. However, when it is created in the Outlook window, it double-spaces every line so you get this:
First Line of text here
Second Line of text here.
Third Line of text here.
Fourth Line of text here.
Fifth Line of text here
Sixth Line of text here.
Seventh Line of text here.
Eighth Line of text here.
I've tried every combination of new line commands (vbcrlf, vbcr, vblf, vbnewline, etc) and every one results in the same outcome of double-spacing once I get how I need it in the vba string. I've also tried doing this concatenation right in the .Body and as a string object shown here...same result for both approaches.
Any idea(s) on how to prevent this double-spacing from occurring? Or, if not, is there way to manipulate the line spacing to 0pt in the e-mail body when creating?
Thanks in advance for any assistance.