![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am wondering if anyone out there has some VB code that I can put in
access that will open outlook email attach 2 excel files and address it to a distribution list I have saved in outlook. This would be huge....thanks. |
Ads |
#2
|
|||
|
|||
![]()
That's pretty straightforward Outlook automation:
On Error Resume Next Set ol = GetObject(, "Outlook.Application") If ol Is Nothing Then Set ol = CreateObject("Outlook.Application") Set ns = ol.GetNamespace("MAPI") ' log on with desired profile ng.Logon "Outlook Settings", "", False, False End If Set msg = ol.CreateItem(0) msg.To = "name of DL" msg.Attachments.Add "C:\excelfile1.xls" msg.Attachments.Add "C:\excelfile2.xls" msg.Display For more basics, see http://www.outlookcode.com/d/vb.htm -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message oups.com... I am wondering if anyone out there has some VB code that I can put in access that will open outlook email attach 2 excel files and address it to a distribution list I have saved in outlook. This would be huge....thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to apply vba code to OL2003 forms ? | TimR | Outlook - Using Contacts | 1 | February 17th 06 05:41 PM |
VBA Code to check Task Status | [email protected] | Outlook and VBA | 2 | February 3rd 06 07:16 PM |
Delete Custom Outlook Control thru Access VBA | Sue Mosher [MVP-Outlook] | Outlook - Using Forms | 0 | January 20th 06 06:29 PM |
Tough One - Update Pivot Chart in Access Report using VBA? | jer99 | Outlook and VBA | 2 | January 19th 06 11:29 PM |
Running query from Access Form commmand using VBA code | Berny | Outlook and VBA | 4 | January 16th 06 03:12 PM |