Brett.Austin
New Member
Hi All,
I am hoping someone can point me in the right direction - I was wondering if it is at all possible in the below code, to have some formatting on the output text?
So example, when the email is written, where it says "Cost Centre:" I would like this to be bold tex, but the result of Range("CostCentres") to be non-bold text
Thanks
Brett
Set olApp = New Outlook.Application
Dim olNs As Outlook.Namespace
Set olNs = olApp.GetNamespace("MAPI")
olNs.Logon
Set olMail = olApp.CreateItem(olMailItem)
olMail.To = strEmailTo
olMail.CC = strEmailCC
olMail.BCC = strEmailBCC
olMail.Subject = "Delegations Update Request"
olMail.Body = vbCrLf & "Hello Accounting Operations," _
& vbCrLf & vbCrLf & "Please action the following delegations changes." _
& vbCrLf & vbCrLf & "Cost Centre: " & Range("CostCentres") _
& vbCrLf & vbCrLf & "Change Type: " & Range("ChangeType") _
& vbCrLf & vbCrLf & "Date End: " & Range("DateEnd") _
& vbCrLf & vbCrLf & "Level: " & Range("SelectLevel") _
& vbCrLf & vbCrLf & "Change From Name: " & Range("ChangeFrom") _
& vbCrLf & vbCrLf & "Change To Name: " & Range("ChangeTo") _
& vbCrLf & vbCrLf & "Other Instructions: " & Range("OtherInstructions") _
& vbCrLf & vbCrLf & "Regards,"
I am hoping someone can point me in the right direction - I was wondering if it is at all possible in the below code, to have some formatting on the output text?
So example, when the email is written, where it says "Cost Centre:" I would like this to be bold tex, but the result of Range("CostCentres") to be non-bold text
Thanks
Brett
Set olApp = New Outlook.Application
Dim olNs As Outlook.Namespace
Set olNs = olApp.GetNamespace("MAPI")
olNs.Logon
Set olMail = olApp.CreateItem(olMailItem)
olMail.To = strEmailTo
olMail.CC = strEmailCC
olMail.BCC = strEmailBCC
olMail.Subject = "Delegations Update Request"
olMail.Body = vbCrLf & "Hello Accounting Operations," _
& vbCrLf & vbCrLf & "Please action the following delegations changes." _
& vbCrLf & vbCrLf & "Cost Centre: " & Range("CostCentres") _
& vbCrLf & vbCrLf & "Change Type: " & Range("ChangeType") _
& vbCrLf & vbCrLf & "Date End: " & Range("DateEnd") _
& vbCrLf & vbCrLf & "Level: " & Range("SelectLevel") _
& vbCrLf & vbCrLf & "Change From Name: " & Range("ChangeFrom") _
& vbCrLf & vbCrLf & "Change To Name: " & Range("ChangeTo") _
& vbCrLf & vbCrLf & "Other Instructions: " & Range("OtherInstructions") _
& vbCrLf & vbCrLf & "Regards,"