I'm trying to figure out how to make certain words in the body of a text bold and/or italicized.
For instance I have a sentence, "Your bill is past due." I want to make the past due bold.
Here's the code:
Sub EmailAspdf()
Dim EApp As Object
Set EApp = CreateObject("Outlook.Application")
Dim EItem As Object
Set EItem = EApp.CreateItem(0)
With EItem
.To = Range("D10")
.Subject = reportname & " " & "-" & " " & month & " " & fy
.Body = "Hello " & cardholder & "," & vbCrLf _
& vbCrLf _
& "This is notice that you currently have a past due amount on your Corporate Card. Please review the attached report for details. Notify me of your plan of action to resolve this issue by close of business, on " _
& vbCrLf _
& vbCrLf _
& "If these items have already been processed, please disregard this notice." _
& vbCrLf _
& vbCrLf _
& "Warm regards,"
.Attachments.Add (path & fname & ".pdf")
.Display
End With
End Sub
For instance I have a sentence, "Your bill is past due." I want to make the past due bold.
Here's the code:
Sub EmailAspdf()
Dim EApp As Object
Set EApp = CreateObject("Outlook.Application")
Dim EItem As Object
Set EItem = EApp.CreateItem(0)
With EItem
.To = Range("D10")
.Subject = reportname & " " & "-" & " " & month & " " & fy
.Body = "Hello " & cardholder & "," & vbCrLf _
& vbCrLf _
& "This is notice that you currently have a past due amount on your Corporate Card. Please review the attached report for details. Notify me of your plan of action to resolve this issue by close of business, on " _
& vbCrLf _
& vbCrLf _
& "If these items have already been processed, please disregard this notice." _
& vbCrLf _
& vbCrLf _
& "Warm regards,"
.Attachments.Add (path & fname & ".pdf")
.Display
End With
End Sub