|  

» Mail the Activeworkbook using VBA in Microsoft Excel

VBA macro tip contributed by Ron de Bruin, Microsoft MVP - Excel
Sub Mail_workbook()
    ActiveWorkbook.SendMail "ron@debruin.nl", _
                            "This is the Subject line"
End Sub
 
If you want to mail the workbook where the code is placed you must use the following line:
ThisWorkbook.SendMail "ron@debruin.nl", _ 
Note: It doesn't have to be the active workbook used at that time.


Rate This Tip
12 34 5
Rating: 3.83     Views: 30536
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments