Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can you advise how I change the following routine so that I e-mail only
the selected print areas (I have multiple print areas) on one sheet. Is this in fact possible/ Thanks mark Sub Mail_ActiveSheet() ActiveSheet.Copy Dim strDate As String Dim Addr As String Dim rng As Range PrintArea = "$A$1:$E$11" Addr = PrintArea Range(Addr).Select Set rng = Selection Application.GoTo rng, True rng.Cells(1).Select strDate = Format(Date, "dd-mm-yy") & " " & Format(Time, "h-mm-ss") ActiveWorkbook.SaveAs "Part of " & ThisWorkbook.Name _ & " " & strDate & ".xls" ActiveWorkbook.SendMail ", _ "E-Mail Test 1" ActiveWorkbook.ChangeFileAccess xlReadOnly Kill ActiveWorkbook.FullName ActiveWorkbook.Close False End Sub ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
set area in excel not giving me option to set print area? | Excel Discussion (Misc queries) | |||
Print Selected Items in Excel Order Form | Excel Discussion (Misc queries) | |||
How do I print only a selected area in Excel 2007 | Excel Discussion (Misc queries) | |||
setting print area to selected cells | Excel Discussion (Misc queries) | |||
I want to change the selected print area but it will not allow me | Excel Worksheet Functions |