Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The range emailed is whatever the current selection is, so just remove any
code that selects a range. I don't know what your problem is with the message display. I just get a standard text mail message of black text on a white background in Outlook. -- Jim Rech Excel MVP "jenelle" wrote in message ... | The following code is from a KB article. It works as is, except cell block | displays black(with white lines) in the Outlook email. How do I make the data | visible? Also, how to set Range = cells that the user has highlighted rather | than A1:C10? | | Sub Send_Range() | | ' Select the range of cells on the active worksheet. | 'ActiveSheet.Range ("A1:C10").Select | | ' Show the envelope on the ActiveWorkbook. | ActiveWorkbook.EnvelopeVisible = True | | ' Set the optional introduction field thats adds header text to the | body. It also sets | ' the To and Subject lines. Finally the message is sent. | With ActiveSheet.MailEnvelope | .Introduction = "This is a sample of data from my worksheet." | .Item.To = "jenellea" | .Item.Subject = "Selection from Excel Workbook" | .Item.Send | End With | End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 giving annoying "Send/Don't Send" error when closing | Excel Discussion (Misc queries) | |||
Bypass: A program is trying to send mail using Item.Send prompt | Excel Discussion (Misc queries) | |||
My send to in excel/word does not offer send as attachment | Excel Discussion (Misc queries) | |||
VB script help - please!! | Excel Discussion (Misc queries) | |||
Excel 2000/XP script to Excel97 script | Excel Programming |