Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I would like to automatically send a spreadsheet out via e- mail, but i do not know how to send it, or even a selection of the sheet (ie a range of cells). The code i am using at the moment is as follows. What do i need to put into the body statement to send either the whole sheet or some of the cells? Thanks in advance Richard Dim myOutlook As Object Dim myMailItem As Object ' Make instance Set myOutlook = CreateObject("Outlook.Application") ' Make mail item Set myMailItem = myOutlook.CreateItem(0) ' Set recipient (internal mail) ' Set recipient (external mail) myMailItem.Recipients.Add " ' Set subject myMailItem.Subject = "Subcontractor Sheet" ' Set body myMailItem.Body = Range("A1:Z100") ' And send it! myMailItem.Send ' Close instance Set myOutlook = Nothing |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spreadsheet as an attachement | New Users to Excel | |||
How come Word is adding zeros to a mail merge number from Excel? | Excel Worksheet Functions | |||
Send to mail recipient (as attachement) is greyed out | Excel Discussion (Misc queries) | |||
Send as attachement | Excel Discussion (Misc queries) | |||
how to send a workbook shortcut as attachement in an e-mail from a userform | Excel Programming |