Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all.
I have found a macro that will email the active worksheet. On the worksheet I have 2 command buttons and some instructions for the operater so they know where to input info. How can I select a range so that only a specific area will be sent. Below is the macro and the area I want to send is ("A1:J69"). Your help would be of great help. Regards Chris Public Sub Email_Midnight_Report() Dim wb As Workbook Application.ScreenUpdating = False ActiveSheet.Copy Set wb = ActiveWorkbook With wb .SaveAs "Email_ " & ThisWorkbook.Name _ & ".xls" 'create a temporary workbook to email .SendMail ", _ "Midnight Report" .ChangeFileAccess xlReadOnly Kill .FullName 'delete temporary file .Close False End With Application.ScreenUpdating = True End Sub |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Chris
Check out the below by Ron de Bruin.. http://www.rondebruin.nl/mail/folder1/mail4.htm -- Jacob "Chris" wrote: Hi all. I have found a macro that will email the active worksheet. On the worksheet I have 2 command buttons and some instructions for the operater so they know where to input info. How can I select a range so that only a specific area will be sent. Below is the macro and the area I want to send is ("A1:J69"). Your help would be of great help. Regards Chris Public Sub Email_Midnight_Report() Dim wb As Workbook Application.ScreenUpdating = False ActiveSheet.Copy Set wb = ActiveWorkbook With wb .SaveAs "Email_ " & ThisWorkbook.Name _ & ".xls" 'create a temporary workbook to email .SendMail ", _ "Midnight Report" .ChangeFileAccess xlReadOnly Kill .FullName 'delete temporary file .Close False End With Application.ScreenUpdating = True End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create a macro that will select a range that can vary in | Excel Discussion (Misc queries) | |||
How do I select a range using a macro? | Excel Discussion (Misc queries) | |||
Using macro to select a range | Excel Worksheet Functions | |||
select a range in a macro | Excel Discussion (Misc queries) | |||
Macro €“ select all cells in current range | Excel Discussion (Misc queries) |