» Mail one Sheet using VBA in Microsoft Excel
VBA macro tip contributed by Ron de Bruin, Microsoft MVP - Excel
CATEGORY - Mail - Send and Receive in VBA
VERSION - All Microsoft Excel Versions
Sheets("Sheet5").Copy
It doesn't have to be the active sheet used at that time. - Create a new workbook with the ActiveSheet.
- Save the workbook before mailing it.
- Delete the file from your hard disk after it is sent.
Sub Mail_ActiveSheet()
Dim strDate As String
ActiveSheet.Copy
strDate = Format(Date, "dd-mm-yy") & " " & Format(Time, "h-mm-ss")
ActiveWorkbook.SaveAs "Part of " & ThisWorkbook.Name _
& " " & strDate & ".xls"
ActiveWorkbook.SendMail "ron@debruin.nl", _
"This is the Subject line"
ActiveWorkbook.ChangeFileAccess xlReadOnly
Kill ActiveWorkbook.FullName
ActiveWorkbook.Close False
End Sub
Book Store:
Recommended Books:
- Accounting the Easy Way
- The Analysis and Use of Financial Statements
- The One Page Business Plan: Start With a Vision, Build a Company!
- VBA for Modelers: Developing Decision Support Systems Using Microsoft« Excel
- Special Edition Using Microsoft Access 2002
- Millionaire Real Estate Mentor : The Secrets of Financial Freedom through Real Estate Investing
No comments have been submitted.

