Need to change the font size and color and style

Excelmasters

Board Regular
Joined
Jun 11, 2015
Messages
115
Hi there,

below is my code to send email.

its working fine. but i want to change the font size to 36 and bold and style to viner hand itc.

"msg" is my variable here.

how do i change it.. please help.:confused:


Code:
Sub DoBirthdayRoutine()

Dim olApp As Outlook.Application
Dim MItem As Outlook.MailItem
Dim cell As Range
Dim Subj As String
Dim EmailAddr As String
Dim Msg As String
Dim EmailAddr2 As String
Dim xpath As String
Dim x As String
Dim strbody As String


Set olApp = New Outlook.Application
Application.ScreenUpdating = False
Sheets("Sheet1").Activate
LR = Range("B" & Rows.Count).End(xlUp).Row


 For Each cell In Columns("D").Cells.SpecialCells(xlCellTypeVisible)
If cell.Value Like "*@*" Then
EmailAddr2 = EmailAddr2 & ";" & cell.Value
End If
Next


For Each cell In Range("B2:B" & LR)
    If Month(cell) = Month(Date) And Day(cell) = Day(Date) Then
  
    Fname = Left(cell.Offset(, -1), InStr(cell.Offset(, -1), " ") + 1)
    Subj = "Happy B'day"
    EmailAddr = cell.Offset(, 1).Value
    Msg = "Hi All, "
    xpath = "d:\My documents\" & Fname & ".jpg"
   
Msg = Msg & vbNewLine & " Let us wish a very Happy Birthday to -" & Fname & vbCrLf & vbCrLf


    
 




Set MItem = olApp.CreateItem(olMailItem)
With MItem
    .To = EmailAddr
    .Subject = Subj
    .Body = Msg


    
      


    
    .bcc = EmailAddr2
    .Attachments.Add (xpath)
     .Attachments.Add "D:\my documents\mypic.jpg"
    


.HTMLBody = .HTMLBody & "<img src='cid:'xpath" & "width='1141' height='747'><br>"






      .HTMLBody = .HTMLBody & "<img src='cid:mypic.jpg'" & "width='314' height='235'><br>"
   
    
    .Display
   
    
End With
End If
Next


  'Application.DisplayAlerts = False
  'ThisWorkbook.Close Saved = True
    


Application.ScreenUpdating = True


End Sub
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

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