Integrating excel & outlook
Closed
Lavanya
-
May 28, 2010 at 06:09 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 28, 2010 at 07:21 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 28, 2010 at 07:21 AM
Related:
- Integrating excel & outlook
- Excel mod apk for pc - Download - Spreadsheets
- How to refresh outlook - Guide
- Odir outlook - Download - Email
- Outlook download free - Download - Email
- Outlook sign up - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 28, 2010 at 07:21 AM
May 28, 2010 at 07:21 AM
Corrected an error
DISCLAIMIER: I HAVE NOT TESTED IT
Some thing like this
DISCLAIMIER: I HAVE NOT TESTED IT
Some thing like this
Sub ShootANote()
Dim ObjOutLook As Object
Dim objMail As Object
Dim olMailItem As Variant
Dim SendTo As String
Dim Subject As String
Dim Body As String
Dim CC As String
Dim Attachment As String
Set ObjOutLook = New Outlook.Application
Set objMail = ObjOutLook.CreateItem(0)
SendTo = "Bill.Gate@microsoft.com, SomeOne@SomeWhere.Com"
Subject = "Email Works ?"
CC = "Yes@No.net"
Attachment = "C:\myPornCollection.zip"
Body = "Dear Some one" & Chr(13) & vbCrLf & " How is life"
With objMail
.To = SendTo
If (CC <> "") Then .CC = "boss@boss.com"
.Subject = Subject
.Body = Body
if (Attachment <> ") then .Attachments.Add (Attachment)
.Display
End With
Set objMail = Nothing
Set ObjOutLook = Nothing
End Sub