Hi, this is actually my first time posting on this site
I am using the vba code below to send out email reminder via outlook. However, I am wondering how to make specific text which is fixed in the code to be bold, as listed : Event/Activity ; Department ; Date of Event ; Description
Can anyone please help me with this? Thanks in advanced.
I am using the vba code below to send out email reminder via outlook. However, I am wondering how to make specific text which is fixed in the code to be bold, as listed : Event/Activity ; Department ; Date of Event ; Description
Can anyone please help me with this? Thanks in advanced.
VBA Code:
Dim wStat As Range, i As Long
Dim dam As Object
For Each wStat In Range("I2", Range("I" & Rows.Count).End(xlUp))
If wStat.Value = "Overdue" Then
i = wStat.Row
Set dam = CreateObject("Outlook.Application").CreateItem(0)
dam.To = Range("F" & i).Value
dam.Cc = Range("G" & i).Value
dam.Subject = Range("C" & i).Value
dam.htmlBody = " Hi " & Range("E" & i).Value & "," & vbCr & vbCr & vbCr & _
" This is to remind you that the " & Range("C" & wStat.Row).Value & _
" is overdue. The details are as follows:" & vbCr & vbCr & _
" Event / Activity : " & Range("C" & i).Value & vbCr & vbCr & _
" Department : " & Range("D" & i).Value & vbCr & vbCr & _
" Date of event : " & Range("A" & i).Value & vbCr & vbCr & _
" Description : " & Range("H" & i).Value & vbCr & vbCr & _
" Please update your status as soon as possible! Thanks." & vbCr & vbCr & vbCr & _
" Best Regards," & vbCr & _
" XX Department"
'
dam.Display
End If
Next
MsgBox "Reminder sent"
End Sub