HTML Format Question

wmtsub

Active Member
Joined
Jun 20, 2018
Messages
322
Is it possible to specify a font and size and maybe color for only one line?


Code:
[LEFT][COLOR=#222222][FONT=Verdana]'sig
    ssig = vbLf _
    & vbLf _
    & vbLf _
    & sname _ ' would like to specify font and size and color here only
    & vbLf _
    & ttl _
    & vbLf _
    & " Division" _
    & vbLf _
    & "8120  Way" _
    & vbLf _
    & "Building [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=104]#104[/URL] " _
    & vbLf[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana] ssig = Replace(ssig, vbLf, Chr(60) & "br" & Chr(62))
' Apply left aligning
    sText = Replace(sText, "align=center x:publishsource=", "align=left x:publishsource=")
' Concatenate all parts for HtmlBody
    sText = sFont & sHtmlHeader & sText & ssig
' Insert sText into HtmlBody
    .htmlbody = sText & "<IMG src=""C:\Users\edwkov\AppData\Roaming\Microsoft\Signatures\EDS_files\small.png"">"[/FONT][/COLOR][/LEFT]
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,215,491
Messages
6,125,107
Members
449,205
Latest member
ralemanygarcia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top