Hi
I have some VBA which generates an email, i need it to be in a particular fond and certain words made bold. What do i need to do to acheive this (code given below)
Private Sub Command18_Click()
Dim strEmail, strBody As String
Dim objOutlook As Object
Dim objEmail As Object
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
strEmail = txtEmail
strBody = ITSQFDocumentName & " received from " & ProjectServiceDesigner & _
": '" & ProjectName & "'- PAR " & ProjectPAR & Chr(13) & Chr(13)
strBody = strBody & "Go Live - " & ProjectLiveDate & Chr(13)
strBody = strBody & ProjectSummary & Chr(13)
strBody = strBody & ITSQFServRecommendation & Chr(13)
strBody = strBody & ITSQFQualityGate & Chr(13)
strBody = strBody & ITSQFList & Chr(13)
strBody = strBody & ITSQFDocumentAddress & Chr(13)
'***creates and sends email
With objEmail
.To = "address@gmail.com"
.Subject = "ITSQF Submission"
.Body = strBody
.Send
End With
Set objEmail = Nothing
End Sub
I have some VBA which generates an email, i need it to be in a particular fond and certain words made bold. What do i need to do to acheive this (code given below)
Private Sub Command18_Click()
Dim strEmail, strBody As String
Dim objOutlook As Object
Dim objEmail As Object
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
strEmail = txtEmail
strBody = ITSQFDocumentName & " received from " & ProjectServiceDesigner & _
": '" & ProjectName & "'- PAR " & ProjectPAR & Chr(13) & Chr(13)
strBody = strBody & "Go Live - " & ProjectLiveDate & Chr(13)
strBody = strBody & ProjectSummary & Chr(13)
strBody = strBody & ITSQFServRecommendation & Chr(13)
strBody = strBody & ITSQFQualityGate & Chr(13)
strBody = strBody & ITSQFList & Chr(13)
strBody = strBody & ITSQFDocumentAddress & Chr(13)
'***creates and sends email
With objEmail
.To = "address@gmail.com"
.Subject = "ITSQF Submission"
.Body = strBody
.Send
End With
Set objEmail = Nothing
End Sub