vba send email
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 Excel VBA Training and help » Vba send an email

Vba send an email

resolvedResolved · Low Priority · Version 2003

replyReply Thu 7 Aug 2008, 16:30Delegate Emma said...

Emma has attended:
Excel VBA Intro Intermediate course

Vba send an email

how do i send an email with vba?

For upcoming training course dates see: Pricing & availability

replyReply Mon 15 Sep 2008, 14:19Trainer Carlos said...

RE: vba send an email

Hi Emma

If you wish to email the current workbook to a colleague or anyone else then the following line of code will do exactly that:

ActiveWorkbook.SendMail Recipients:="theirname@theircompany.com", _
Subject:="Latest Accounts"


This creates a new e-mail with the above address and Subjent line and the workbook attached.

Hope this helps

Carlos

 

Please browse our web site to find out more about
excel+training+best and other Microsoft training courses.

Excel tip:

Make a quick copy of a worksheet

Hold down the Ctrl key, then click and drag on a sheet tab to make a copy of that sheet. Though this process usefully copies the formats of the original sheet, note that any Range Names you have on the original sheet will be duplicated too.

To make a copy of a worksheet's contents and formats without duplicating range names: (1) Ensure that you have a blank worksheet to paste to. (2) On the sheet to copy, click on the sheet selection square to the left of Column A's heading to select the whole sheet. (2) Copy the whole sheet. (3) Paste to the blank worksheet.



View all Excel 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