Text Highlight Color

Patriot2879

Well-known Member
Joined
Feb 1, 2018
Messages
925
Hi I hvee cdebelow and whee the text isfor forward plaaning I wantthis tohave a text highlight color of yellow please an you advise ow t do this? many thanks for your time

Code:
"<br><br>" & "Forward Planning & JM-ing - ??." & "<br><br>" & "Many thanks, New Connections Team."
Code:
Private Sub CommandButton10_Click()
Dim OutApp As Object
Dim OutMail As Object
Dim sTo As String, sCC As String, sSbject As String, sBody As String
Set OutApp = CreateObject("Outlook.Application")
With Application
.EnableEvents = False
.ScreenUpdating = False
End With

ssubject = "New Connections Handover for ??"
sTo = ""
sCC = ""
sBody = "Hi All" & vbCrLf & "<br><br>" & "Please find attached the New Connections Handover for <u><b>??</u></b>. " & vbCrLf & "<br><br><b>" & "? Jobs booked and ? manual jobs." & vbCrLf & "<br><br><u>" & "Escalations." & vbCrLf & "</b></u><br><br>" & "None. " & vbCrLf & "<u><b><br><br>" & "Paper Jobs." & vbCrLf & "</u></b><br><br>" & "None." & vbCrLf & "<u><b><br><br>" & "3 Phase Mentoring." & vbCrLf & "</u></b><br><br>" & "None." & vbCrLf & "<u><b><br><br>" & "Managed/Organised sites." & vbCrLf & "</u></b><br><br>" & "None." & vbCrLf & "<u><br><br><b>" & "DCC." & vbCrLf & "</u></b><br><br>" & "None." & vbCrLf & "<u><br><br><b>" & "Rebinds." & "</u></b><br><br>" & "There are 0 rebinds issued for tomorrow." & "<u><br><br><b>" & "Duplicate Jobs." & "</u></b><br><br>" & "There are 0 duplicates issued for tomorrow." & "<u><br><br><b>" & "The Plan" & "</u></b><br><br>" & vbNewLine & _
"Optimising Next Day (D+1 - ??" & vbNewLine & _
"<br><br>" & "Forward Planning & JM-ing - ??." & "<br><br>" & "Many thanks, New Connections Team."
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = sTo
.CC = sCC
.Subject = ssubject
.HTMLbody = sBody
.Display
End With
End Sub
 

Patriot2879

Well-known Member
Joined
Feb 1, 2018
Messages
925
Hi what I would like if this helps is the background behind the text in yellow colour, the same as when you highlight the text highlight color when sending an email as normal, hope this helps :) thanks for your time
 

Forum statistics

Threads
1,081,578
Messages
5,359,736
Members
400,545
Latest member
Damntheman30

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top