vba courses london - automatically sending excel file
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Automatically sending excel files through outlook

vba courses london - Automatically sending excel files through outlook

resolvedResolved · Low Priority · Version Standard

replyReply Fri 10 Nov 2006, 16:48Delegate Aman said...

Automatically sending excel files through outlook

I would like to know how to make excel talk to outlook

I want to be able to send reports out to different area managers without needing to do it manually.

I have produced 12 reports all named differently and have recipient lists for each report but am not sure how to put the 2 together

Thanks
Aman

For upcoming training course dates see: Pricing & availability

replyReply Wed 15 Nov 2006, 09:20Trainer Garry said...

RE: Automatically sending excel files through outlook

The SendMail Method is very easy to use and will send any specified Excel Workbook as an attachment to specified recipients. As the code below specifies the Active Workbook the code is best stored in your Personal.xls
Sub SendActiveWorkbook()
ActiveWorkbook.SendMail _
Recipients:="Info@domain.net", _
Subject:="Thank you " & Format(Date, "dd/mmm/yy")
End Sub

try this first

 

Vba tip:

Count the Rows and Columns in a Selection

If you need to count the number of rows or columns in a worksheet use the following code:

Selection.Rows.Count - Returns the number of rows in the selection

Selection.Columns.Count - Returns the number of columns in the selection

Selection.CurrentRegion.Rows.Count - Returns the number of rows in the current region of the selection

View all VBA hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard