I have a long code to send email from excel and there are some texts that I need to change it's font to BOLD and the color to red
Through my searches online I have found a way to do that and thanks god it works even I'm not professional in VBA but still there are some issues I don't know how to fix them as you can see in the screenshot below ,
1- there are (" ") before and after the word and also there is one extra sign (") at the end before the email signature
2- (" Best Regards") is a part from my outlook signature but only this part is shown LEFT TO RIGHT while it should be right to left
3- how to put make the last red word before signature with underline like this ( :ملحوظة)
Here is the part of my code
Through my searches online I have found a way to do that and thanks god it works even I'm not professional in VBA but still there are some issues I don't know how to fix them as you can see in the screenshot below ,
1- there are (" ") before and after the word and also there is one extra sign (") at the end before the email signature
2- (" Best Regards") is a part from my outlook signature but only this part is shown LEFT TO RIGHT while it should be right to left
3- how to put make the last red word before signature with underline like this ( :ملحوظة)
Here is the part of my code
VBA Code:
newHTML = "<div dir='rtl' style='font-family:Calibri; font-size:11pt;'>" & _
"<b>" & body1 & "</p>" & _
"<p>" & body7 & "</p></b>" & _
"<p>" & body2 & " <b>(" & membershipNo & ")</b> " & body3 & " <b>(" & _
startDate & "</b> - <b> " & endDate & ")</b> ""<b>" & "<font color=red>" & period & "</font>" & "</b>"" </p>" & _
"<p>" & body4 & "</p>" & _
"<p>" & body5 & "</p>" & _
"<b>" & "<font color=red>""<b>" & body6 & "</font>" & "</b>""</p></b>" & _
"<\div>"""
[ATTACH type="full"]123765[/ATTACH]