Trevor3007
Well-known Member
- Joined
- Jan 26, 2017
- Messages
- 675
- Office Version
- 365
- Platform
- Windows
hello,
I currently use :-
which is at the end of my vb project.
However, is it possible to include the file name in the subject line ?
also, i need to include several lines of text & my contact details in the body of the message too.
Oh... I dont what it to auto send, as it does at present....
can anyone please solve this for me?
MTIA & kind regards
Trevor3007
I currently use :-
Code:
[COLOR=#3366CC] Dim OutApp As Object[/COLOR] Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.to = ""
.CC = ""
.BCC = ""
.Subject = "This is the Subject line"
.Body = "Hi there"
.Attachments.Add ActiveWorkbook.FullName
.Send [COLOR=black]'or use .Display[/COLOR]
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing [COLOR=#3366CC]End Sub[/COLOR]
which is at the end of my vb project.
However, is it possible to include the file name in the subject line ?
also, i need to include several lines of text & my contact details in the body of the message too.
Oh... I dont what it to auto send, as it does at present....
can anyone please solve this for me?
MTIA & kind regards
Trevor3007
Last edited: