JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
i know VBS works almost exactly like VBA so this should be doable:
i have the following which currently works:
Though im wanting to include the default signature, exactly how it would it outlook
Also would like to bold the Name1 and Code1 parts of the body, is it possible?
Any help appreciated
i know VBS works almost exactly like VBA so this should be doable:
i have the following which currently works:
Code:
Dim outobj, mailobj
Dim strFileText
Dim objFileToRead
Name1 = Inputbox("Enter Name")
Code1 = Inputbox("Enter your Code")
Set outobj = CreateObject("Outlook.Application")
Set mailobj = outobj.CreateItem(0)
With mailobj
.to = "testto@mail.com"
.cc = "testcc@mail.com"
.Subject = "Test"
.Body = "Hi," & vbCrLf & vbCrLf & _
"Name:" & " " & Name1 & vbCrLf & _
"Code:" & " " & Code1 & vbCrLf & vbCrLf & _
"Best Regards,"
.Display
End With
'Clear the memory
Set outobj = Nothing
Set mailobj = Nothing
Though im wanting to include the default signature, exactly how it would it outlook
Also would like to bold the Name1 and Code1 parts of the body, is it possible?
Any help appreciated