SPAN Tag
Sub SpanTag_In_Automation()
Dim OL As Outlook.Application
Set OL = New Outlook.Application
Dim M As Outlook.MailItem
Set M = OL.CreateItem(olMailItem)
BodyContent = "<p style = 'Font-size:25pt; color:black; font-family:Calibri';>Hi Every One <br>"
BodyContent = BodyContent & "This program enunciates about the of Span Tag<br>"
BodyContent = BodyContent & "Hope this is useful to everyone <br>"
BodyContent = BodyContent & "Increase The <span Style = 'Font-size:30pt';>Font </span>Size<br>"
BodyContent = BodyContent & "Change The <span Style = 'font-family:Rosewood Std Regular'';>Font </span>Name<br>"
BodyContent = BodyContent & "Change The <span Style = 'color:Blue';>Font </span>Color<br>"
BodyContent = BodyContent & "Change The <span Style = 'Background-color:#F00;'>BG </span>Color<br>"
BodyContent = BodyContent & "Apply <span Style = 'Font-style: italic;'>Italic</span> Font Style<br>"
BodyContent = BodyContent & "Apply <span Style = 'Font-weight: Bold;'>bold</span> on Font<br>"
BodyContent = BodyContent & "Apply <span Style = 'Font-weight: Bolder;'>bolder</span> on Font<br>"
BodyContent = BodyContent & "Apply Bold <span Style = 'Font-weight: 900;'>upto 900</span> on Font<br>"
BodyContent = BodyContent & "<br>Thanks,<br>Pavan Kumar</p>"
With M
.To = "Enter Your Email id"
.CC = "Enter Your Email id"
.BCC = "Enter Your Email Id"
.Subject = "This Is about Span Tag"
.BodyFormat = olFormatHTML
.HTMLBody = BodyContent & .HTMLBody
.Display
'.Send
End With
End Sub