Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Based on buttons, I have about 20 small macros that select a particular named
range ("rpt01" in the example below) and select the appropriate email address. If a long subroutine is required (such as Ron de Bruin's, another responder) I would use the small macro to preset the named range and pass the email address to the long subroutine. We use Office 2003 and normally have email open all day. Thanks, Steve "Jacob Skaria" wrote: Are you getting the error while referring the range directly instead of using the named ranges. If this post helps click Yes --------------- Jacob Skaria "Steve" wrote: I used Article ID: 816644 and copied and pasted to set up in a macro. I get error message 430 - Class does not support automation or does not support expected interface. The code Sub mail1() Dim CSR As String Set Location = Worksheets("CSRs").Range("Schedules") CSR = Application.WorksheetFunction.Index(Location, 1, 7) ActiveSheet.Range("rpt01").Select ActiveWorkbook.EnvelopeVisible = True With ActiveSheet.MailEnvelope .Item.To = CSR .Item.Subject = "Daily Report" .Item.Send End With End Sub With other programming I was able to send the whole worksheet as an attachment in an email. I was also able to send the range in the message body using SendKeys but that gave erratic results. I just can't seem to send a range as the message body using VBA without SendKeys. Suggestions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Emailing a template and keeping same layout as the message body | Excel Discussion (Misc queries) | |||
Emailing Range in Body CC Problem | Excel Programming | |||
Emailing range for Excel and adding body text | Excel Programming | |||
Code problem emailing range as html in Outlook body | Excel Programming | |||
Send a range in Excel as the body of an Outlook Express message | Excel Programming |