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
Amber Error PowerEdge 2650 e0d76
How can I find the position of the first occurance of a numeric charater in a string with PHP?
VMware Workstation 7.1 Won't Install
Lable (and other elements) not appearing in my code behind
IBM Think Pad HD error
How can i add column name in list generic?
Moving .piv and .stm Exchange 2003 files to another drive
Microsoft Word 2007with Windows 7
Report ot few records
Symantec Endpoint Protection - SID 23615 HTTPS Tidserv Request 2 Detected