Microsoft
Software
Hardware
Network
Question : add line spaces within a VBA email message
How do you add line spaces within a VBA email message when vbLf doesn't work? For example, I have the below code but all spaces are ignored:
.Subject = "Par Plan Reimbursement Details"
.HTMLBody = (FirstnameC) & ", " & vbLf & _
vbCrLf & "attached is the detail Par Plan Reimbursement report(s) and spreadsheet(s), for servicing our members. " & _
"The check should arrive within the next couple of business days. If you have any questions, please contact " & _
"Bill Smith at (123) 456-7899 or email
[email protected]
. " & vbLf & _
(vbCr & vbLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & "Thank you for servicing our customers.")
.Attachments.Add pathname & [rstTables].[Contact] & ".zip"
Answer : add line spaces within a VBA email message
If you use the HTMLBody property, then you have to use HTML tags for formatting and for paragraph breaks.
If you use the Body property instead, your code will work as expected.
Random Solutions
To Blob Cache or NOT?
Registry key property value
Access 2003 -> Word 2003 - have a question on code that works to save doc as pdf file...
call .rdl with store procedure with parameter
Can I add multi-millions of records to SQL database while replication is on? Will it work?
unknown process - should I be concerned
MySQL Rows to Columns by Group
Quickr..How do I edit the tabs on the home page of my place? I want to add a tab
Split strings with RegEx
Import text file - definition (field name, delimited, lng) based on a table