I have found a code on the web to send excel file as attachment and modified it to settle my needs
but I need your professional help to add my signature image to the email body and to make the email body text to be set as (Right to Left)
here is my code and screenshot of my email signature
need your suggestions please
but I need your professional help to add my signature image to the email body and to make the email body text to be set as (Right to Left)
here is my code and screenshot of my email signature
need your suggestions please
VBA Code:
[Sub sendfile()
Dim eapp As Object
Set eapp = CreateObject("outlook.application")
Dim eitem As Object
Set eitem = eapp.createitem(0)
fileNo = Range("B1")
Filename = Range("B2")
body = ("E5")
body2 = Range("E6")
body3 = Range("E7")
body4 = Range("E8")
Path = "D:\Desktop\Docs\booking list.xlsm\"
fname = Filename & " - " & fileNo
With eitem
.to = Range("B3")
.cc = Range("b4")
.Subject = Filename & fileNo
.body = "Dear All " _
& vbCrLf _
& vbCrLf _
& body2 & fileNo _
& vbCrLf _
& vbCrLf _
& body3 _
& vbCrLf _
& vbCrLf _
& body4 _
.Attachments.Add "D:\Desktop\Guards\gurads list.xlsm"
.Send
End With
End Sub]
[ATTACH type="full"]121895[/ATTACH]